Skip to content

Update obligations for a built-in role

PATCH
/v1/roles/built-in/{name}/obligations
curl --request PATCH \
--url https://api.varman.io/v1/roles/built-in/owner/obligations \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "obligations": { "compliance": false } }'

Override the obligations for a built-in role (e.g., turn off the compliance obligation for owners). Permissions stay sourced from the hardcoded defaults.

name
required
string

Example

owner

Built-in role name

Media typeapplication/json
object
obligations
required

Obligations override for the built-in role.

object
compliance

Whether the role must complete compliance tasks.

boolean

Example

false

Example

{
"compliance": false
}

Obligations updated

Media typeapplication/json
object
name
string
obligations
object
compliance
boolean

Example generated

{
"name": "example",
"obligations": {
"compliance": true
}
}

Not a built-in role