Skip to main content
POST
/
custom_role
/
duplicate
Duplicate Custom Role
curl --request POST \
  --url https://api.partoo.co/v2/custom_role/duplicate \
  --header 'x-APIKey: <api-key>'
{
  "name": "This is My Custom Role",
  "api_id": "my_custom_role_2",
  "description": "It has a custom permission configuration!",
  "org_id": 42,
  "is_builtin": 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

custom_role_api_id
string
required

API identifier of the custom role (api_id)

Response

OK

Response for successfully duplicating 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: ,;/\|<>. API identifier of the duplicated custom role.

Example:

"my_custom_role_2"

description
string
Example:

"It has a custom permission configuration!"

org_id
integer | null

Organization id

Example:

42

is_builtin
boolean
Example:

false