Create a custom role
Swagger UIyaml/design-api/ custom-rolesRequest body application/json · CustomRoleCreateRequest
keystringrequiredThe unique key of the custom role within the tenant
typestringThe type of the custom role: 'scoped' (assignable on workspaces/apps) or 'global' (tenant-wide privileges assigned directly to users/groups). Defaults to 'scoped'.
scopedglobalnamestringThe display name of the custom role
descriptionstringAn optional human-readable description of the custom role
permissionsstring[]The set of permission strings granted by this custom role
tenantIdstringThe tenant id of the custom role. Only super-admins may specify a tenant other than their own.
Responses
successful operation · CustomRoleResponse
idstringrequiredThe technical id of the custom role
keystringrequiredThe unique key of the custom role within the tenant
tenantIdstringrequiredThe tenant id of the custom role
typestringThe type of the custom role: 'scoped' (assignable on workspaces/apps) or 'global' (tenant-wide privileges assigned directly to users/groups).
scopedglobalnamestringThe display name of the custom role
descriptionstringAn optional description of the custom role
permissionsstring[]The permission strings granted by this custom role
createdAtstringISO 8601 creation timestamp
Example: 2026-01-15T08:30:00Z
createdBystringThe user that created this custom role
updatedAtstringISO 8601 last update timestamp
Example: 2026-01-15T08:30:00Z
updatedBystringThe user that last updated this custom role
requiredGrey names have no description in the spec