API Playground - process_template

process_template


Template processor. This works the same way as in the email notifications or other templates. Depending on the context given by input parameters, you can use tags from Q204 and/or Q205. You can always use tags from Q206 and Q221 and the conditional tags from Q207. You must specify one of: site_id, resource_id or reservation_id to give appropriate context for the tags. (click for full documentation)

reservation_id

ID of the reservation (required only for reservation-specific tags from Q204) (your latest reservations were: 13671396, 13660209, 13660174, 13660158, 13049526)

resource_id

ID of the resource (required only for resource-specific tags from Q205)

site_id

ID of the site (required only for meta-sites when site-specific tags listed in Q206 are used)

template

Template to be processed. If the template includes the tag $(resources) and both resource_id and reservation_id are empty, then you can iterate through all the site's resources and specify the inner (per-resource) template in the inner_template parameter. The tag $(resources) will be replaced by the resource listing.

inner_template

This parameter is optional and must be only passed when template includes the tag $(resources) and both reservation_id and resource_id are empty. The inner template will be inserted for each resource of the site and can use resource-specific tags (from Q205).

language

by specifying a 2-letter (ISO 639-1) language code (all capital letters e.g. EN, DE, FR, ES, IT) you can change the language of the text values returned

api_key

* - pole wymagane