Skip to main content
PATCH
http://localhost:3000
/
roles
/
{id}
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"
}

Path Parameters

id
string
required
The unique identifier of the role to update

Request Body

name
string
Updated display name for the role
description
string
Updated description of the role

Response

Returns the updated role object.
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"
}