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