Skip to content

Set role group's roles

Request

Update the roles of an existing role group of your application. This will replace any existing set of roles of that group.

Required permissions: organizations:edit, roles:edit.

Security
AdminAccessToken
Path
app_idstringrequired

ID of the application to set the roles to

group_idstringrequired

ID of the group to set the roles to

Bodyapplication/jsonrequired
role_idsArray of stringsrequired

Ids of the roles

Example:
[ "role1", "role2" ]
curl -i -X POST \
  'https://api.sbx.transmitsecurity.io/cis/v1/applications/{app_id}/role-groups/{group_id}/roles/set' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "role_ids": [
      "role1",
      "role2"
    ]
  }'

Responses