Update a custom role
Roles
Update a custom role | Comp AI API
Update a custom role in Comp AI. Create custom roles and resolve permission sets for organization-level access control.
PATCH
Update a custom role
Authorizations
API key for authentication
Path Parameters
Role ID
Example:
"rol_abc123"
Body
application/json
New name for the custom role
Required string length:
2 - 50Example:
"Compliance Manager"
Updated permissions for the role. Keys are resource names, values are arrays of allowed actions.
Example:
{
"control": ["read", "update", "delete"],
"policy": ["read", "update", "delete"],
"risk": ["read", "update"]
}Updated obligations for the role.
Example:
{ "compliance": true }
