Skip to main content

Publish

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

Parameters

string
required
The template ID or alias.

Returns

Returns a *PublishTemplateResponse containing the published template ID.

Example


PublishWithContext

Publish 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.

Returns

Returns a *PublishTemplateResponse containing the published template ID.

Example


Types

PublishTemplateResponse

Response from publishing a template.
string
The unique identifier of the published template.
string
The object type, always “template”.