curl --request POST \
--url https://services.leadconnectorhq.com/emails/builder/data \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "ve9EPM428h8vShlRW1KT",
"templateId": "zYy3YOUuHxgomU1uYJty",
"updatedBy": "zYy3YOUuHxgomU1uYJty",
"dnd": "{elements:[], attrs:{}, templateSettings:{}}",
"html": "",
"editorType": "html",
"previewText": "zYy3YOUuHxgomU1uYJty",
"isPlainText": "false",
"usedEmailAI": false
}
'{
"ok": "true",
"traceId": "0c52e980-41f6-4be7-8c4b-32332ss",
"previewUrl": "https://example.com",
"templateDownloadUrl": "https://example.com",
"versionId": "507f1f77bcf86cd799439011"
}Update a template
curl --request POST \
--url https://services.leadconnectorhq.com/emails/builder/data \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "ve9EPM428h8vShlRW1KT",
"templateId": "zYy3YOUuHxgomU1uYJty",
"updatedBy": "zYy3YOUuHxgomU1uYJty",
"dnd": "{elements:[], attrs:{}, templateSettings:{}}",
"html": "",
"editorType": "html",
"previewText": "zYy3YOUuHxgomU1uYJty",
"isPlainText": "false",
"usedEmailAI": false
}
'{
"ok": "true",
"traceId": "0c52e980-41f6-4be7-8c4b-32332ss",
"previewUrl": "https://example.com",
"templateDownloadUrl": "https://example.com",
"versionId": "507f1f77bcf86cd799439011"
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 "2021-07-28"
"ve9EPM428h8vShlRW1KT"
"zYy3YOUuHxgomU1uYJty"
"zYy3YOUuHxgomU1uYJty"
Show child attributes
"{elements:[], attrs:{}, templateSettings:{}}"
""
html, builder "zYy3YOUuHxgomU1uYJty"
"false"
Whether Email AI was used
false
Success
ok
"true"
trace id
"0c52e980-41f6-4be7-8c4b-32332ss"
preview url
"https://example.com"
template data download url
"https://example.com"
version id of the saved template
"507f1f77bcf86cd799439011"
Was this page helpful?