Get a user migration status
GET
/user/migrations/{migration_id} https://api.github.com
Fetches a single user migration. The response includes the state of the migration, which can be one of the following values:
pending- the migration hasn't started yet.exporting- the migration is in progress.exported- the migration finished successfully.failed- the migration failed.
Once the migration has been exported you can download the migration archive.
Parameters
path Path Parameters
| Name | Type |
|---|---|
migration_id
required
The unique identifier of the migration. | number |
query Query Parameters
| Name | Type |
|---|---|
exclude | string[] |
Responses
200 application/json
Response
interface Migration {
id: number;
owner:SimpleUser | null;
guid: string;
state: string;
lock_repositories: boolean;
exclude_metadata: boolean;
exclude_git_data: boolean;
exclude_attachments: boolean;
exclude_releases: boolean;
exclude_owner_projects: boolean;
org_metadata_only: boolean;
repositories:Repository [];
url: string;
created_at: string;
updated_at: string;
node_id: string;
archive_url?: string;
exclude?: string[];
}
id: number;
owner:
guid: string;
state: string;
lock_repositories: boolean;
exclude_metadata: boolean;
exclude_git_data: boolean;
exclude_attachments: boolean;
exclude_releases: boolean;
exclude_owner_projects: boolean;
org_metadata_only: boolean;
repositories:
url: string;
created_at: string;
updated_at: string;
node_id: string;
archive_url?: string;
exclude?: string[];
}
Redirects
304
Not modified
unknown
Client Errors
401 application/json
Requires authentication
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
403 application/json
Forbidden
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
404 application/json
Resource not found
interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}