Skip to main content
GET
/
custom_role
/
{custom_role_api_id}
Get Custom Role
curl --request GET \
  --url https://api.partoo.co/v2/custom_role/{custom_role_api_id} \
  --header 'x-APIKey: <api-key>'
{
  "name": "This is My Custom Role",
  "api_id": "this_is_my_custom_role",
  "description": "It has a custom permission configuration!",
  "org_id": 42,
  "is_builtin": false,
  "permissions": [
    "business_edit",
    "business_edit_open_hours"
  ]
}

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

custom_role_api_id
string
required

API identifier of the custom role (api_id)

Response

OK

Detailed representation of a Custom Role

name
string

Name of the Custom Role. Cannot contain any of the following characters: ,;/\|<>.

Example:

"This is My Custom Role"

api_id
string

API identifier of the Custom Role. Cannot contain any of the following characters: ,;/\|<>.

Example:

"this_is_my_custom_role"

description
string
Example:

"It has a custom permission configuration!"

org_id
integer | null

Organization id

Example:

42

is_builtin
boolean
Example:

false

permissions
string[]
Example:
["business_edit", "business_edit_open_hours"]