Update obligations for a built-in role
PATCH
/v1/roles/built-in/{name}/obligations
const url = 'https://api.varman.io/v1/roles/built-in/owner/obligations';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"obligations":{"compliance":false}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”name
required
string
Example
ownerBuilt-in role name
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
obligations
required
Obligations override for the built-in role.
object
compliance
Whether the role must complete compliance tasks.
boolean
Example
falseExample
{ "compliance": false}Responses
Section titled “Responses”Obligations updated
Media typeapplication/json
object
name
string
obligations
object
compliance
boolean
Example generated
{ "name": "example", "obligations": { "compliance": true }}Not a built-in role