Create a custom role
Roles
Create a custom role | Comp AI API
Create a custom role in Comp AI. Create custom roles and resolve permission sets for organization-level access control.
POST
Create a custom role
Authorizations
API key for authentication
Body
application/json
Name of the custom role
Required string length:
2 - 50Example:
"Compliance Lead"
Permissions for the role. Keys are resource names, values are arrays of allowed actions.
Example:
{
"control": ["read", "update"],
"policy": ["read", "update"],
"risk": ["read"]
}Obligations for the role. Boolean flags for requirements like compliance.
Example:
{ "compliance": true }
