Skip to main content

Create a new role for a tenant

POST 

/roles

Creates a new role under the tenant identified by the required tenant-id header. Use this to define a named grouping of permissions that can later be assigned to users; to modify an existing role use PATCH /roles/{roleId}. The request body accepts a name and an optional description for the new role. Returns 201 with the created role object including the server-assigned id, tenantId, createdAt, and createdBy fields. Returns 400 if the tenant-id header is absent or blank.

Request​

Responses​

Role created successfully