Roles
Update a custom role
Changed onUpdate a custom role in Comp AI. Create custom roles and resolve permission sets for organization-level access control.
patch/v1/roles/{roleId}
Request
- Base URLhttps://api.trycomp.ai
- AuthAPI key in header X-API-Key
Path parameters
roleIdstring required
Example:rol_abc123
Role ID
Request body
Example request
{
"name": "Compliance Manager",
"permissions": {
"control": [
"read",
"update",
"delete"
],
"policy": [
"read",
"update",
"delete"
],
"risk": [
"read",
"update"
]
},
"obligations": {
"compliance": true
}
}Response
Role updated successfully
Changes
- info
the endpoint scheme security
oauth2was removed from the API
- info
- info
the endpoint scheme security
oauth2was added to the API
- info