Skip to main content

Duplicate

Duplicate a template by ID or alias using the default context.

Parameters

string
required
The template ID or alias to duplicate.

Returns

Returns a *DuplicateTemplateResponse containing the new template ID.

Example


DuplicateWithContext

Duplicate a template by ID or alias with a custom context.

Parameters

context.Context
required
Context for the request, useful for timeouts and cancellation.
string
required
The template ID or alias to duplicate.

Returns

Returns a *DuplicateTemplateResponse containing the new template ID.

Example


Types

DuplicateTemplateResponse

Response from duplicating a template.
string
The unique identifier of the newly created duplicate template.
string
The object type, always “template”.