Role → Create
AI-generatedSummary
Create a custom role in the Humanitech system by specifying its name and the permissions it grants.
Inputs
- Name (required) — The name to assign to the newly created custom role.
- Permissions (required) — A JSON array defining the allowed extensions/permissions for this role.
Output shape
a single record representing the newly created role.
The operation sends a POST request to '/api/dashboard/roles' including 'name' and 'permissions' in the request body. The response will include the created role data.
Examples
Example 1: Create a role named 'Editor' with permissions allowing content editing
Set 'Name' to 'Editor' and 'Permissions' to an appropriate JSON array representing editing permissions.