Burn & Claim’s new API is in preview: these pages describe it as it will be at launch.
Burn & Claim Docs

Change a custom role

Changes a custom role's name, description or permissions; the system roles can't change. Needs `roles.edit`.

PATCH/v1/orgs/{orgId}/roles/{roleId}

Changes a custom role's name, description or permissions; the system roles can't change. Needs roles.edit.

Authorization

AuthorizationBearer <token>

A Synq access token for this API: bnc.read for reads, bnc.write for changes.

In: header

Path Parameters

orgId*string

The organization's id

Match^org_[0-9a-hjkmnp-tv-z]{26}$
roleId*string

The custom role's id

Match^role_[0-9a-hjkmnp-tv-z]{26}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://example.com/v1/orgs/string/roles/string" \  -H "Content-Type: application/json" \  -d '{    "name": "Acme",    "description": "string",    "permissions": [      "webhooks.view"    ]  }'
{  "id": "role_01j3sa8pvcfp79z85hrb9y9xd6",  "key": "admin",  "name": "Admin",  "description": "string",  "system": true,  "permissions": [    "webhooks.view"  ]}