Sample - GitHub REST API
DELETE/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock

Unlock an organization repository

Unlocks a repository that was locked for migration. You should unlock each migrated repository and delete them when the migration is complete and you no longer need the source data.

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

3 parameters
orgstringrequired
The organization name. The name is not case sensitive.
migration_idintegerrequired
The unique identifier of the migration.
repo_namestringrequired
repo_name parameter

2 status codes
204Response
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned: Resource not found.