VUZDevelopers

Duplicate an existing template

POST
/templates/{id}/duplicate

Creates a copy of an existing template with a new name. The duplicate starts at version 1 and is not set as default.

X-Api-Key<token>

Business API key, e.g. vuz_ab12cdef... Created via Settings → Integrations → API Keys. Unlike partner keys, a public API key's STRING does not encode its environment — isolation instead comes from a completely separate sandbox database: a key minted on the Sandbox server (above) only ever reads/writes sandbox data and can never see or affect production, regardless of what the key looks like.

In: header

Path Parameters

id*string

Template UUID to duplicate

Header Parameters

x-business-id*string

Business ID for multi-tenant access

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/templates/string/duplicate" \  -H "x-business-id: string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "businessId": "50092e54-cd12-4059-9828-e8c4ee9a3cf5",  "name": "string",  "description": "string",  "documentTypes": [    "order"  ],  "isDefault": true,  "isActive": true,  "templateData": {},  "version": 0,  "thumbnailUrl": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e"}