API - Planyo Web Services - set_form_items_from_csv

You are here: Planyo » Βοήθεια » API » set_form_items_from_csv

set_form_items_from_csv

Description:

This function will import the reservation form for the specified resource from a CSV file. Warning: this function will override the existing form items for the resource.

Input:

csv string required
CSV file with form items. The format is the same as the CSV export in Reservation form layout in the backend or as the one exported by get_form_items (with format set to csv).
resource_id int required
ID of the resource whose form should be updated. If this resource currently uses the global form, it will be changed to resource-specific.
method string required
must be set to set_form_items_from_csv
language string optional
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 string required
your API key - Click here to get your key. If your API key uses a hash key, you must also include the parameters hash_key and hash_timestamp.

Output:

none

API playground:

Click here to test this function in the API playground.