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:

Response

Successful response

data
TemplateDetailV3 · object

Template detail including its variable schema, scenes, and bindable elements.