Permissions

Copy a Role

This endpoint copies an existing role by ID.

post/roles/{roleId}/copy

Request body

namestring required

Display name for the duplicated role. The new role inherits the source role's permissions and description; the name distinguishes the copy from the original. 1-120 characters.

Example request

{
  "name": "Spa Manager"
}

Response

The role was successfully retrieved.

Example response

{
  "data": {
    "name": "Spa Manager",
    "description": "Allows access to settings for the assigned site.",
    "permissions": [
      "clients.view"
    ]
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.