Skip to main content
GET
/
org
/
{org_id}
/
switch_to_custom_roles
Get Custom Roles switch status
curl --request GET \
  --url https://api.partoo.co/v2/org/{org_id}/switch_to_custom_roles \
  --header 'x-APIKey: <api-key>'
{
  "org_id": 42,
  "has_switched": true,
  "can_switch": false
}

Authorizations

x-APIKey
string
header
required

The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.

Path Parameters

org_id
integer
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_id
integer
required

Unique identifier of an organization in Partoo.

Example:

42

has_switched
boolean
required

Whether the organization has switched to Custom Roles

Example:

true

can_switch
boolean
required

Whether the organization is allowed to switch to Custom Roles

Example:

false