POST /email-templates/{template_id}/{item_id}. Reservation email templates from the Car Rental settings are listed by GET /car-rental/reservations/{reservation_id}/email-templates.success envelope: the templates are in data, and the pagination fields (current_page, last_page, next_page_url, ...) sit next to it.success field. HTTP 200 is also used for failures: such a body has success: false and is an ErrorUnauthorized (status_code 401 or 403).{
"current_page": 1,
"data": [
{
"id": 4,
"label": "Overdue repair order reminder",
"item_type": "fleets.repair_orders",
"action": "recurring",
"send_as_sms": false
}
],
"first_page_url": "https://api.hqrentals.app/api/email-templates?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://api.hqrentals.app/api/email-templates?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://api.hqrentals.app/api/email-templates?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.hqrentals.app/api/email-templates",
"per_page": 50,
"prev_page_url": null,
"to": 1,
"total": 1
}