v1

latestOpenAPI 3.1.0© Copyright Partoo2026-07-26163503484.0 KB
Custom Roles

Get Custom Roles switch status

Get the current status of the organization's switch to Custom Roles. This endpoint returns information about whether the organization has switched to Custom Roles and whether they are allowed to switch.

get/org/{org_id}/switch_to_custom_roles

Path parameters

org_idinteger required

Unique ID of the organization to which the resource belongs. Only PROVIDER users can access resources from a different organization than their own. If you are not a PROVIDER, this will default to the ID of your organization.

Response

Successfully retrieved switch status

org_idinteger required

Unique identifier of an organization in Partoo.

has_switchedboolean required

Whether the organization has switched to Custom Roles

can_switchboolean required

Whether the organization is allowed to switch to Custom Roles

Example response

{
  "org_id": 42,
  "has_switched": true
}