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": 123,
  "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

Organization id

Response

Successfully retrieved switch status

org_id
integer
required

Organization ID

Example:

123

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