Skip to main content
PUT
Set Template Variables

Authorizations

x-api-key
string
header
required

HeyGen API key. Obtain from your HeyGen dashboard.

Path Parameters

template_id
string
required

Unique template identifier

Body

application/json

Request body for PUT /v3/templates/{template_id}/variables.

Full replacement: the body is the complete variable set after the call. A variable that exists on the template but is missing here is removed.

variables
Variables · object
required

The complete variable set, keyed by variable name (letters, digits, underscores; must start with a letter or underscore; at most 64 characters). An empty object removes every variable.

Example:
expected_edit_version
string | null

The template's edit_version from your last GET. When given, the update is rejected with 409 stale_edit_version if the template changed since. Omit to overwrite unconditionally.

Minimum string length: 1
Example:

"3"

Response

Successful response

data
TemplateDetailV3 · object

Template detail: its variable schema, the July scene summary and, for authoring workspaces, its composition.