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.


Valid Authentication Methods

API Key Grants:

  • RepositoryEdit

OAuth 2.0 User Token Scopes:

  • repository
Path Params
string
required
Body Params
users
array of objects
required
users*
Headers
string
required
Defaults to 1
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!