Skip to main content
POST
/
org
/
{org_id}
/
switch_to_custom_roles
Switch to Custom Roles
curl --request POST \
  --url https://api.partoo.co/v2/org/{org_id}/switch_to_custom_roles \
  --header 'Content-Type: application/json' \
  --header 'x-APIKey: <api-key>' \
  --data '
{
  "switch_to_custom_roles": true
}
'
{
  "status": "success",
  "org_id": 123
}

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

Body

application/json
switch_to_custom_roles
boolean
required

Whether to switch to Custom Roles (true) or revert to standard roles (false)

Example:

true

Response

Successfully updated Custom Roles switch status

status
enum<string>
required

Request status

Available options:
success
Example:

"success"

org_id
integer
required

Organization ID

Example:

123