Design Edits
Edits allow you to programmatically alter template properties when calling the design API. Any property that can be edited in the template editor can also be modified through the API using the edits schema.
Making Edits
When calling the design API, edit's can be made to an element in your design by providing an edit object with the name of the element and the properties you wish to modify.
If you'd like to edit the text of an element in your design you tagged with the name title
, you would provide the following edit object as part of your request body:
{
"template_id": "123",
"edits": {
"title": {
"value": "New Text"
}
}
}
To change the image of an element tagged with the name logo
, you would provide the following edit object:
{
"template_id": "123",
"edits": {
"logo": {
"imageURL": "https://example.com/new-image.png"
}
}
}
Element Types
Templates consist of three primary element types:
Edit Schema
The following tables outline the available modification options for each element type, as well as properties shared across all elements.