cURL
curl --request POST \ --url https://api.obselite.com/v0/roles/update \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "description": "<string>", "isEnabled": true, "lockedAt": "<string>", "include": "<string>", "permissions": [ "DELETE_MEMBER" ] }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "description": "<string>", "organization": {}, "organizationDefault": {}, "teamsOnResources": [ {} ], "usersOnOrganizations": [ {} ], "usersOnResources": [ {} ], "usersOnTeams": [ {} ], "activities": [ {} ] }
The API token generated from the Obselite dashboard
Role UUID
Available options: organizationDefault, permissions, teamsOnResources, usersOnOrganizations, usersOnResources, usersOnTeams, activities
organizationDefault
permissions
teamsOnResources
usersOnOrganizations
usersOnResources
usersOnTeams
activities
Show child attributes
Successful response
The organization that owns this role, following the organization schema
The default role for the organization, following the role schema