Blocks
Update a block
Replaces a block. Send every field: optional fields that are left out are reset to their defaults. Only the tenant that created a block can update it.
put/blocks/{id}
Request
- Base URLhttps://api5.optimove.net/content/v1
- URLhttps://api5.optimove.net/content/v1/blocks/{id}
- AuthAPI key in header X-API-KEY
Request body
Example request
{
"tagName": "summer-sale-banner",
"name": "Summer sale banner",
"html": "<div>Hi {{customer.FirstName}}, our summer sale has started.</div>",
"plaintext": "Hi {{customer.FirstName}}, our summer sale has started.",
"editorType": "html",
"code": {
"header": "{% assign greeting = \"Hello\" %}"
}
}Response
The updated block.
Example response
{
"tagName": "summer-sale-banner",
"name": "Summer sale banner",
"html": "<div>Hi {{customer.FirstName}}, our summer sale has started.</div>",
"plaintext": "Hi {{customer.FirstName}}, our summer sale has started.",
"editorType": "html",
"code": {
"header": "{% assign greeting = \"Hello\" %}"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.