Put Style
Update style
path Parameters
style_name required | string (Style Name) |
header Parameters
content-type required | any (ContentTypeHeader) Value: "application/json" An enumeration. |
tenant required | string (Tenant) |
Request Body schema: application/json
style_name | string (Style Name) Name of the style |
content required | string (Content) Content of the style |
Responses
Request samples
- Payload
{- "style_name": "string",
- "content": "string"
}
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Put Sample Data
Update sample data by locale
path Parameters
template_id required | string (Template ID) |
locale required | string (Locale) |
header Parameters
Tenant required | string (Tenant) |
Request Body schema: text/plain
The sample data as plain text.
Responses
Response samples
- 200
- 422
null
Render Template
Render template
path Parameters
template_id required | string (Template Id) |
header Parameters
content-type required | any (ContentTypeHeader) Value: "application/json" An enumeration. |
tenant required | string (Tenant) |
Request Body schema: application/json
locale | string (Locale) Locale to use for rendering. If not specified, the default locale (en_US) will be used. A locale is defined by a language and country separated by an underscore. Example locales are en_US, en_UK, de_DE, de_AT, fr_FR, fr_CA, da_DK, jp_JP. |
data required | object (Data) Data to use for rendering |
content_type | string (ContentTypes) Enum: "html" "pdf" "text" Can be either pdf, html or text |
ttl | string (Time to live) Time to live in days, will be kept indefinitely if not set. |
Responses
Request samples
- Payload
{- "locale": "en_US",
- "data": { },
- "content_type": "html",
- "ttl": "string"
}
Response samples
- 200
- 422
{- "content_type": "html",
- "output": "string",
- "permanent_link": "string",
- "s3_params": { },
- "vault_data_id": null
}
Preview Template
Preview template
path Parameters
template_id required | string (Template Id) |
header Parameters
content-type required | any (ContentTypeHeader) Value: "application/json" An enumeration. |
tenant required | string (Tenant) |
Request Body schema: application/json
locale | string (Locale) Locale to use for rendering. If not specified, the default locale (en_US) will be used. A locale is defined by a language and country separated by an underscore. Example locales are en_US, en_UK, de_DE, de_AT, fr_FR, fr_CA, da_DK, jp_JP. |
data | object (Data) Template data |
content_type | any (ContentTypes) Enum: "html" "pdf" "text" Can be either pdf, html or text |
template | string (Template) Template id |
style | string (Style) Style to use in the template |
Responses
Request samples
- Payload
{- "locale": "en_US",
- "data": { },
- "content_type": "html",
- "template": "string",
- "style": "string"
}
Response samples
- 422
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Put Template
Update template by locale
path Parameters
template_id required | string (Template Id) |
locale required | string (Locale) |
header Parameters
content-type required | any (ContentTypeHeader) Value: "application/json" An enumeration. |
tenant required | string (Tenant) |
Responses
Response samples
- 200
- 422
null
Delete Template
Delete template by locale
path Parameters
template_id required | string (Template Id) |
locale required | string (Locale) |
header Parameters
content-type required | any (ContentTypeHeader) Value: "application/json" An enumeration. |
tenant required | string (Tenant) |
Responses
Response samples
- 200
- 422
null