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
Example response
{
"name": "This is My Custom Role",
"api_id": "my_custom_role_2",
"description": "It has a custom permission configuration!",
"org_id": 42
}