v1

latestOpenAPI 3.1.02026-07-13154170539.0 KB
Roles & Permissions

Create Custom Role

Create a custom role for an organization.

Only organization owners can create custom roles.

:param request_fastapi: FastAPI request object. :param organization_id: Organization ID. :param role_data: Role creation data. :param session: Database session. :return: Created role.

post/v0/organizations/{organization_id}/roles

Path parameters

organization_idinteger required

Request body

namestring required
descriptionstring nullable
permission_idsinteger[]

Response

Successful Response

idinteger required
namestring required
descriptionstring nullable
organization_idinteger nullable
is_system_roleboolean required
created_atstring date-time required