Skip to main content
POST
/
roles
/
assign
Assign role to user
curl --request POST \
  --url https://api.obselite.com/v0/roles/assign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "roleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

The API token generated from the Obselite dashboard

Body

application/json
roleId
string<uuid>
required
teamId
string<uuid>
required
userId
string<uuid>
required
resourceId
string<uuid>
required

Response

Successful response

success
boolean
required