---
title: "Duplicate Custom Role"
method: POST
path: "/custom_role/duplicate"
tags: ["Custom Roles"]
---

# Duplicate Custom Role

`POST /custom_role/duplicate`

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"`

## Path parameters

- `custom_role_api_id` string, required

## Query parameters

- `org_id` integer

## Response `200`

OK

- CustomRoleDuplicateResponse — Response for successfully duplicating a custom role
  - `name` string — Name of the Custom Role. Cannot contain any of the following characters: `,;/\|<>`.
  - `api_id` string — API identifier of the duplicated custom role.
  - `description` string
  - `org_id` integer — Unique identifier of an organization in Partoo.
  - `is_builtin` boolean

## Other responses

- `401` — You are not authenticated
- `403` — You are not allowed to perform this action
- `404` — Resource does not exist

---

[API](https://skmtc.net/partoo/apis/partoo-rest-api.md) · [All operations](https://skmtc.net/partoo/apis/partoo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/partoo/partoo-rest-api/revisions/3652d8b1a8b3/schema)
