v1

latestOpenAPI 3.1.0© Copyright Partoo2026-07-26163503484.0 KB
Custom Roles

Duplicate Custom Role

Duplicate a Custom Role. A new Custom Role with (almost) the same name and api_id, and identical description and permissions will be created in your organization.

The new name will be the same as the original role, with an added suffix

  • "My Custom Role""My Custom Role - 2"

And similar for the api_id:

  • "my_custom_role""my_custom_role_2"
post/custom_role/duplicate

Path parameters

custom_role_api_idstring required

API identifier of the custom role (api_id)

Query parameters

org_idinteger

Organization ID. Only PROVIDER users can specify a different organization. If not provided, defaults to your own organization.

Response

OK

namestring

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

api_idstring

API identifier of the duplicated custom role.

descriptionstring
org_idinteger

Unique identifier of an organization in Partoo.

is_builtinboolean

Example response

{
  "name": "This is My Custom Role",
  "api_id": "my_custom_role_2",
  "description": "It has a custom permission configuration!",
  "org_id": 42
}