Ana içeriğe atla
POST
Preview an offer template

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Gövde

application/json

Nothing is stored, so anyone who may edit a template may preview it. Filling it with a real offer reads that offer, so View:Offer is required for that too.

content
string
gerekli

The template HTML to render, as it currently stands in the editor.

Maximum string length: 1000000
offer_id
integer | null

An offer to fill the %placeholder% variables from. Without it the content is returned unchanged.

Gerekli aralık: x >= 1

Yanıt

success
string
gerekli
data
object
gerekli