DuplicateDepartmentRoleRequest

A request or response body; the type column links to the schemas it refers to.

DuplicateDepartmentRoleRequest

FieldTypeRequiredDescription
namestringno

The copy's name; omit for the original's with " (copy)" appended.

1–200 characters

slugstringno

The copy's slug, unique within the department; omit for the first free `-copy`, `-copy-2`… of the original's. Slugs are lowercase letters and digits in words separated by single hyphens, like customer-success.

1–100 characters · matches ^[a-z0-9]+(-[a-z0-9]+)*$

requirementsarray of DuplicateRoleRequirementno

The requirement links to copy, each with the copy's initial due date; links left out stay with the original, and an empty list copies none. Omit to copy every link the caller can read with its schedule and due date unchanged; links whose type the caller cannot read are never copied.

manager_role_idsarray of string (uuid)no

Roles managing the original that should manage the copy too, as GET …/managers lists them; an empty list copies none. Omit to copy every one.

subordinate_role_idsarray of string (uuid)no

Roles the original manages that the copy should manage too, as GET …/managers lists them; an empty list copies none. Omit to copy every one.

grant_to_holdersbooleanno

Also grant the copy to everyone currently holding the original, each until their grant of the original expires; they keep the original too. Omit or false and nobody holds the copy.

jsonExample
{
  "name": "string",
  "slug": "string",
  "requirements": [
    {
      "link_id": "1b671a64-40d5-491e-99b0-da01ff1f3341",
      "initial_due_at": "2026-01-01T00:00:00.000Z"
    }
  ],
  "manager_role_ids": [
    "1b671a64-40d5-491e-99b0-da01ff1f3341"
  ],
  "subordinate_role_ids": [
    "1b671a64-40d5-491e-99b0-da01ff1f3341"
  ],
  "grant_to_holders": true
}