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

Changes

No recorded changes to this endpoint across all 1 revision of this API.