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"
Authorizations
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
API identifier of the custom role (api_id)
Query Parameters
Organization ID. Only PROVIDER users can specify a different organization. If not provided, defaults to your own organization.
Response
OK
Response for successfully duplicating a custom role
Name of the Custom Role. Cannot contain any of the following characters: ,;/\|<>.
"This is My Custom Role"
API identifier of the duplicated custom role.
"my_custom_role_2"
"It has a custom permission configuration!"
Unique identifier of an organization in Partoo.
42
false