v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Update user rights

Update the specified user rights

put/users/{user_id}/rights

Path parameters

user_idinteger required

The ID of the user

Request body

role'admin' | 'default' | 'team_only' required

The role to assign to the user.

read_onlyinteger

Optional parameter. 0 or 1 integer indicating if the user is has only read rights. If not set this field will not be updated.

Example request

{
  "role": "default",
  "read_only": 0,
  "permissions": {
    "can_ignore_or_snooze_issues": 1,
    "can_change_issue_severity": 1,
    "can_manage_teams": 1,
    "can_manage_clouds": 1,
    "can_manage_containers": 1,
    "can_manage_domains": 1,
    "can_manage_repos": 1,
    "can_manage_code_quality": 1,
    "can_export_data": 1,
    "can_manage_endpoint_protection": 1,
    "can_manage_pentests": 1
  }
}

Response

The user rights are successfully updated

successinteger

The integer 1 indicating success

Example response

{
  "success": 1
}