Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Creates a role in a organization
cURL
curl --request POST \ --url https://api.beyondwords.io/v1/roles \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data ' { "name": "New role", "permissions": { "content_view": { "enabled": false }, "content_create": { "enabled": false } } } '
{ "id": 1, "key": "owner", "name": "Owner", "organization_id": 1, "permissions": { "content_view": { "enabled": true }, "content_create": { "enabled": false } }, "created": "2023-01-01 00:00:00 UTC", "updated": "2023-01-01 00:00:05 UTC" }
successful
Show child attributes
Time at which the object was created (ISO 8601)
Time at which the object was updated (ISO 8601)
Was this page helpful?