Update Image Template
update-image-templateUpdate one of the user's own image templates: rename it, replace a static design with a new image_url, or point a dynamic template at a new dynamic_image_url (its stored preview is re-rendered). The mailer type cannot be changed — create a new template with create-image-template instead. Shared system designs cannot be updated. A new image replaces a ThanksAI Studio design or a tracked QR code the template carried: it prints exactly as given, and any warnings say when tracking was dropped, so tell the user. When the new image prints a QR code thanks.io won't track, the result carries qr_code and a next_step saying what to ask the user.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image_template_id": "<image_template_id>"
},
"name": "update-image-template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A new name for the template. | |
| image_url | No | Replacement design for a static template. Publicly reachable JPG or PNG URL for a static front design. The image is downloaded, cropped to the product's print dimensions and stored on thanks.io, so it keeps working if the original URL goes away. Provide exactly one of image_url or dynamic_image_url. | |
| dynamic_image_url | No | Replacement design for a dynamic template; the stored preview is re-rendered. A thanks.io image-builder URL (…/api/v2/build/image-template?id=<1-20>&background_url=…&header=…) containing ~TAG~ personalization variables such as ~FIRST_NAME~, ~CUSTOM1~ or ~STREET_VIEW~. Each mailer is rendered per recipient at send time; a flattened sample preview is stored now. Provide exactly one of image_url or dynamic_image_url. | |
| image_template_id | Yes | The id of one of the user's own templates, from list-image-templates. Shared system designs cannot be updated. |