Sample - GitHub REST API
GET/orgs/{org}/migrations/{migration_id}/archive

Download an organization migration archive

Retrieves the URL for an organization migration archive. Provide org and migration_id to identify the migration whose archive you want to download. The response redirects you to the archive location.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
orgstringrequired
The organization name containing the migration; the name is not case sensitive.
migration_idintegerrequired
The unique integer identifier of the migration archive to download.

2 status codes
302Returns a redirect to the URL of the organization migration archive.
404Returned when the specified organization or migration cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when the specified organization or migration does not exist. org must identify the organization and migration_id must identify the requested migration.