Update a repository
Changed onSince this endpoint can be used to both update and to create a repository, the request body depends on the intent.
Creation
See the POST documentation for the repository endpoint for an example of the request body.
Update
Note: Changing the name of the repository will cause the location to be changed. This is because the URL of the repo is derived from the name (a process called slugification). In such a scenario, it is possible for the request to fail if the newly created slug conflicts with an existing repository's slug. But if there is no conflict, the new location will be returned in the Location header of the response.
Request
- Base URLhttps://api.bitbucket.org/2.0
- URLhttps://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: repository:admin
- or HTTP basic
- or API key in header Authorization
Request body
Response
The existing repository has been updated
Changes
- warning
removed the request property
///////////// - warning
removed the request property
////////// - warning
removed the request property
/// - warning
removed the request property
///////// - warning
removed the optional property
/////////////from the response with the status - warning
removed the optional property
/////////////from the response with the status - warning
removed the optional property
//////////from the response with the status - warning
removed the optional property
//////////from the response with the status - warning
removed the optional property
///from the response with the status - warning
removed the optional property
///from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
/////////from the response with the status - warning
added the new
rebase_fast_forwardenum value to the////response property for the response status - warning
added the new
rebase_fast_forwardenum value to the////response property for the response status - warning
added the new
rebase_mergeenum value to the////response property for the response status - warning
added the new
rebase_mergeenum value to the////response property for the response status - warning
added the new
squash_fast_forwardenum value to the////response property for the response status - warning
added the new
squash_fast_forwardenum value to the////response property for the response status - info
added the new optional request property
///////// - info
added the new
rebase_fast_forwardenum value to the request property//// - info
added the new
rebase_mergeenum value to the request property//// - info
added the new
squash_fast_forwardenum value to the request property//// - info
added the optional property
/////////to the response with the status - info
added the optional property
/////////to the response with the status
- warning