Pullrequests

Add a user to the default reviewers

Changed on

Adds the specified user to the repository's list of default reviewers.

This method is idempotent. Adding a user a second time has no effect.

put/repositories/{workspace}/{repo_slug}/default-reviewers/{target_username}

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/default-reviewers/{target_username}
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token URL: https://bitbucket.org/site/oauth2/access_token scopes: repository:admin
    • or HTTP basic
    • or API key in header Authorization

Response

The specified user was successfully added to the default reviewers

typestring required
created_onstring date-time
display_namestring
uuidstring

Changes

    • warning

      removed the optional property / from the response with the status