curl -X PATCH 'https://api.example.com/roles/role_123' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Senior Editor",
"description": "Can edit, publish, and manage content"
}'
{
"id": "role_123",
"name": "Senior Editor",
"description": "Can edit, publish, and manage content",
"scopeId": "scope_456"
}
Update an existing role
curl -X PATCH 'https://api.example.com/roles/role_123' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Senior Editor",
"description": "Can edit, publish, and manage content"
}'
{
"id": "role_123",
"name": "Senior Editor",
"description": "Can edit, publish, and manage content",
"scopeId": "scope_456"
}
curl -X PATCH 'https://api.example.com/roles/role_123' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Senior Editor",
"description": "Can edit, publish, and manage content"
}'
{
"id": "role_123",
"name": "Senior Editor",
"description": "Can edit, publish, and manage content",
"scopeId": "scope_456"
}
Was this page helpful?