v2

Swagger 2.02026-08-01331211921.0 KB
Repositories

Update an explicit user permission for a repository

Updates the explicit user permission for a given user and repository. The selected user must be a member of the workspace, and cannot be the workspace owner. Only users with admin permission for the repository may access this resource.

The only authentication method for this endpoint is via app passwords.

Permissions can be:

  • admin
  • write
  • read
put/repositories/{workspace}/{repo_slug}/permissions-config/users/{selected_user_id}

Request body

permission'read' | 'write' | 'admin' required

Response

Explicit user permission updated

typestring required
permission'read' | 'write' | 'admin' | 'none'