Replace Text In Template
Example
Replace Text In Template
Template video:
add050630b74443fb9541965307b6083
Variables:
{
"code": 100,
"data": {
"scenes": [
{
"variables": [
{
"name": "text_0",
"properties": [
{
"default": "New Title",
"name": "text"
}
],
"type": "text"
}
]
}
],
"template_id": "add050630b74443fb9541965307b6083",
"video_id": "add050630b74443fb9541965307b6083"
},
"message": "Success"
}
template generate req:(curl)
curl --request POST \
--url https://api.heygen.com/v1/template.generate \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'x-api-key: O/rgPJbuWtusgyBOfYBHytyIuL2DeGowXB7rTBwLpxY="' \
--data '
{
"template_id": "add050630b74443fb9541965307b6083",
"title": "video_title",
"variables": [
{
"properties": {
"text": "welcome to HeyGen"
},
"name": "text_0"
}
],
"test": false
}
'
Result
Updated about 2 months ago