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

Make a custom role

Makes a role of the org's own from permissions the caller holds. Needs `roles.edit`.

POST/v1/orgs/{orgId}/roles

Makes a role of the org's own from permissions the caller holds. 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}$

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

application/problem+json

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