Update role
Updates a custom role. permissions is REPLACED wholesale, not merged — the array you send becomes the role's entire permission set, so anything omitted is revoked from every member holding the role. Read the role first and send the full intended list. Omitting permissions entirely leaves it untouched. Edits apply immediately: effective permissions are recomputed on every request. Requires role:manage, the custom_roles feature, and that you hold every permission you are granting.
Request
- Base URL: https://api.elaichi.ai
- URL: https://api.elaichi.ai/role/{id}
- Auth: HTTP bearer
Path parameters
Role id (role_…).
Headers
Target organization (org_…). Required for cookie/session auth on org-scoped routes; optional for API tokens, which carry their organization, and rejected when it names a different one.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.