Change a custom role
Changes a custom role's name, description or permissions; the system roles can't change. Needs `roles.edit`.
/v1/orgs/{orgId}/roles/{roleId}Changes a custom role's name, description or permissions; the system roles can't change. Needs roles.edit.
A Synq access token for this API: bnc.read for reads, bnc.write for changes.
In: header
Path Parameters
The organization's id
^org_[0-9a-hjkmnp-tv-z]{26}$The custom role's id
^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" ]}Change a member's roles PATCH
Never your own, never the Owner's, and never granting or taking away a permission you don't hold.
Change what a connected Telegram chat posts PATCH
What one connected chat posts: its cleanup posts (a mode, or `off`), donation alerts, leaderboard posts, burn reminders, and the forum topic they go to (`null` for General). Audited. Needs `integrations.edit`.