Roles
Create role
Authoring custom roles requires the role:manage permission and the custom_roles plan feature; the predefined system roles stay readable and assignable on every plan. You may only grant permissions you hold yourself — otherwise an admin could mint a role carrying billing:manage and assign it to themselves. Validate names against GET /permission.
post/role
Request
- Base URL: https://api.elaichi.ai
- URL: https://api.elaichi.ai/role
- Auth: HTTP bearer
Headers
X-Organization-Idstring
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
Created
Changes
No recorded changes to this operation across all 1 revision of this API.