API - Planyo Web Services - set_custom_property

Jesteś tutaj: Planyo » Pomoc » API » set_custom_property

set_custom_property (version 1)


Sets a new value for the property. Properties can be of different types -- planyo allows assigning custom properties to users, sites, resources and reservations. Please note that custom properties will be visible in the backend UI (for site administrators) unless the property name starts with 'hidden'. In such case the property will be usable only by the API and hidden everywhere in the UI. Note that normally for resource properties the language parameter should not be passed unless you're setting a language-specific property such as description.


type string required
Property type (one of: site, resource, reservation, user)
id int required
Related ID whose property is being queried (depending on type one of: site ID, resource ID, reservation ID, user ID)
name string required
Property name. You can use the hidden_ prefix if you want the property to be completely hidden from the UI, meaning that neither the admin nor the customer will see it's value.
value string required
Property value
version float optional
you can optionally specify the version of the API that you're using. Use the value of latest or simply skip this parameter to use the latest API version. The latest version is: 1
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.


value string
Property value (same as the one passed to the function)

API playground:

Click here to test this function in the API playground.