Add the specific user as a default reviewer for the project
Adds the specified user to the project’s list of default reviewers. The method is
idempotent. Accepts an optional body containing the uuid of the user to be added.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The project in question. This can either be the actual key assigned
to the project or the UUID (surrounded by curly-braces ({})).
This can either be the username or the UUID of the default reviewer,
surrounded by curly-braces, for example: {account UUID}.
This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: {workspace UUID}.
Responses
Section titled “ Responses ”The specified user was added as a project default reviewer
object
Links related to an Account.
object
A link to a resource related to this object.
object
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
A link to a resource related to this object.
object
The user’s Atlassian account ID.
The status of the account. Currently the only possible value is “active”, but more values may be added in the future.
Account name defined by the owner. Should be used instead of the “username” field. Note that “nickname” cannot be used in place of “username” in URLs and queries, as “nickname” is not guaranteed to be unique.
Examples
{ "display_name": "Yaniv Sagy", "links": { "self": { "href": "https://api.bitbucket.org/2.0/users/%7Bdd5db7f2-6389-458d-a62a-716773910b7a%7D" }, "avatar": { "href": "https://secure.gravatar.com/avatar/YS-2.png" }, "html": { "href": "https://api.bitbucket.org/%7Bdd5db7f2-6389-458d-a62a-716773910b7a%7D/" } }, "type": "user", "uuid": "{dd5db7f2-6389-458d-a62a-716773910b7a}", "account_id": "712020:4efe52fa-b4b4-475b-9eb0-c0a23b7eb194", "nickname": "Yaniv Sagy"}If the specified user cannot be added as a default reviewer for the project
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}If the authenticated user does not have admin access to the project
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}If the specified user, project, or workspace does not exist
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
object
Optional structured data that is endpoint-specific.
object
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}