Skip to main content
POST
/
v1
/
authorization
/
roles
/
{roleId}
/
users
Assign Users To Role
curl --request POST \
  --url https://app.untetherlabs.com/api/v1/authorization/roles/{roleId}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "assigned": 123
}
This is a beta endpoint. Breaking changes may occur without notice, use at your own risk.
Assign users to a role

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

roleId
string<uuid>
required

Body

application/json
userIds
string<uuid>[]
required

Response

assigned
number
required