Skip to main content
POST
http://localhost:3000
/
scope-overrides
/
roles
curl -X POST 'https://api.example.com/scope-overrides/roles' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "childScopeId": "scope_team",
    "roleId": "role_admin",
    "state": "disabled"
  }'
{
  "id": "override_123",
  "childScopeId": "scope_team",
  "roleId": "role_admin",
  "state": "disabled"
}

Request Body

childScopeId
string
required
The scope where the override will apply
roleId
string
required
The role to override
state
string
required
Override state: enabled or disabled

Response

Returns the created role override object.
Role overrides allow you to enable or disable inherited roles at specific scopes in the hierarchy.
curl -X POST 'https://api.example.com/scope-overrides/roles' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "childScopeId": "scope_team",
    "roleId": "role_admin",
    "state": "disabled"
  }'
{
  "id": "override_123",
  "childScopeId": "scope_team",
  "roleId": "role_admin",
  "state": "disabled"
}