Getting started
Analytics
Background tracks
Content
Languages
Organization settings
Project voices
Player settings
Player
Playlists
Webhooks
Projects
Roles
RSS Feed
Rules
Summarization Settings
Video Settings
Roles
Update a role
Roles
Update a role
Updates role in a organizaiton
PUT
/
roles
/
{id}
curl --request PUT \
--url https://api.beyondwords.io/v1/roles/{id} \
--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"
}
Authorizations
Path Parameters
The numeric ID of your role
Response
200 - application/json
successful
Time at which the object was created (ISO 8601)
Time at which the object was updated (ISO 8601)
curl --request PUT \
--url https://api.beyondwords.io/v1/roles/{id} \
--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"
}