Accounts
Create custom field configurations
Changed onAdd one or more custom fields to the account in a single request. Each field requires key, object and type; displayName is generated from the key, lowercased with spaces replaced by underscores, and any value you send for it is ignored. Keys and display names must be unique across the account, including across different object types. Returns the account's complete custom field list, not only the fields just created.
post/accounts/{id}/custom-fields
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/accounts/{id}/custom-fields
- AuthAPI key in header authorization
Path parameters
idstring required
Guesty account ID or me
Request body
Example request
{
"customFields": [
{
"isPublic": true,
"key": "Special requests",
"object": "reservation",
"options": [
"Welcome package A",
"Welcome package B",
"Welcome package C"
]
}
]
}Response
Custom Fields Array
Example response
[
{
"fieldId": "5dc03b42e28baf001e2b35d0"
}
]Changes
- info
endpoint added
- info