Create or Update Repository User Roles

Manages user roles on a repository, allowing for updating of existing repository users or adding roles for new users on the repository.

Manages user roles on a repository, allowing for updating of existing repository users or adding roles for new users on the repository.


Valid Authentication Methods

API Key Grants:

  • RepositoryEdit

OAuth 2.0 User Token Scopes:

  • repository
Path Params
string
required

The unique identifier of the repository

Body Params
users
array of objects
required

Array of users and their roles to add or update on the repository

users*
Responses
204

No Content. User and group roles have been successfully added or updated.

400

Bad Request. Occurs when duplicate or invalid user IDs are provided, or REPOSITORY_MEMBERs are added to an UNRESTRICTED repository.

403

Forbidden. Occurs when the user does not have permission to modify the repository.

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here!