v1

latestOpenAPI 3.0.3MIT2026-07-24122271451.2 KB
Templates

Duplicate Template

Duplicate Template

Creates a copy of a template within the same workspace.

📘 Permissions

Requires can_read_templates and can_duplicate_templates permissions. Duplicating templates owned by other users additionally requires can_duplicate_any_template.

post/public/v1/templates/{id}/duplicate

Path parameters

idstring required

Template ID

Request body

namestring

Custom name for the duplicated template. When omitted or empty, a name is auto-generated from the source template.

Example request

{
  "name": "My Duplicated Template"
}

Response

Template duplicated successfully.

idstring

Unique identifier of the duplicated template.

namestring

Name of the duplicated template.

date_createdstring date-time

Date and time when the duplicated template was created.

date_modifiedstring date-time

Date and time when the duplicated template was last modified.

Example response

{
  "id": "va9aNuj3uX2w9M7uytn967",
  "name": "Copy of Sample Template",
  "date_created": "2025-01-15T10:30:00.123456Z",
  "date_modified": "2025-01-15T10:30:00.234567Z",
  "meta": {
    "source_template_id": "EE8yUNg5HztqVAuH85He8V"
  }
}