Grant-level templates
Create a template
Creates a grant-level template.
post/v3/grants/{grant_id}/templates
Request body
Example request
{
"body": "<p>Hello {{user.name}}, your booking has been confirmed.</p>",
"engine": "mustache",
"name": "Booking confirmed message",
"subject": "{{user.name}}, your booking is confirmed!"
}Response
Success. Returns template.
Example response
{
"data": {
"app_id": "6c45fe5e-0bb6-41b9-9acc-ccb15bfc51eb",
"body": "<p>Hello {{user.name}}, your booking has been confirmed.</p>",
"created_at": 1640995200,
"engine": "mustache",
"grant_id": "6c45fe5e-0bb6-41b9-9acc-ccb15bfc51eb",
"id": "b79c82b2-a51b-4c54-8469-28006a43551a",
"name": "Booking confirmed message",
"object": "template",
"subject": "{{user.name}}, your booking is confirmed!",
"updated_at": 1640995200
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.