Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

Render Template String

POST /tenants/{tenant}/contentblocks/render-template

Renders an arbitrary Liquid template string (e.g. a subject line) with the provided template variables. Returns the rendered string.

Requires: ViewAll on ContentBlocks.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

{
  "template": "string",
  "data": {
    "title": "string",
    "subtitle": "string",
    "secondarySubtitle": "string",
    "postalAddress": "string",
    "addressee": "string"
  }
}

Responses

200 OK
401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json