Table of Contents
- API Usage Guide
- API Command Reference
- add_booking
- add_client
- add_invoice
- add_resource
- approve_request
- authenticate_user
- del_booking
- del_bookings
- del_client
- del_invoice
- del_resource
- email_client
- gen_invoice
- get_activity
- get_availability
- get_booking
- get_booking_type
- get_booking_types
- get_bookings
- get_client
- get_consumable_levels
- get_invoice
- get_invoices
- get_messages
- get_reminders
- get_resource
- get_resource_availability
- get_setting
- get_template
- get_user
- get_users_logged_in
- get_venue
- get_venue_groups
- get_venues
- get_venues_in_group
- get_venues_in_use
- get_watches
- mod_booking
- mod_client
- mod_invoice
- mod_resource
- mod_venue
- notify_user
- reject_request
- restore_booking
- set_setting
- set_template
- util_api_usage
- util_from_epoch
- util_to_epoch
- Appendix A - Activity Codes
- Appendix B - Setting Names
- Appendix C - Error Handling
- Code Samples
- Troubleshooting
- Release Notes
← Hide Table of Contents
MIDAS API: set_template
Available in API 2.0+
Set/Modify a template
Required Parameters | Possible Values | Description |
template | template name | The name of the template to update. See below for available template names |
content | Text | New HTML template content |
Optional Parameters | Possible Values | Description |
additional | String | For templates where an additional value can be set (such as email templates where a subject line may be specified), this new value can be passed via the "additional " parameter. See below for which templates support this parameter |
Template Name | Description | Additional |
Email (General) | ||
email_book_cancel | Email (Booking Cancelled) | Email Subject |
email_book_confirm | Email (Booking Confirmation) | Email Subject |
email_book_remind | Email (Booking Reminder) | Email Subject |
email_req_approved | Email (Booking Request Approved) | Email Subject |
email_req_approved_m | Email (Booking Request Approved - with changes) | Email Subject |
email_req_rejected | Email (Booking Request Rejected/Declined) | Email Subject |
email_req_submitted | Email (Booking Request Submitted) | Email Subject |
email_inv_overdue | Email (Invoice Overdue) | Email Subject |
email_inv_remind | Email (Invoice Reminders) | Email Subject |
invoice | Invoice (Regular) | |
invoice_cancellation | Invoice (Cancellation) | |
payonline | Online Payments | External .css file |
receipt | Invoice Receipt | |
webrequest | Public Booking Requests | External .css file |
intro | Welcome Note (on login screen) |
Example Response |
{ "response":"ok" } |