Delete a custom field configuration
Changed onRemove a custom field definition from the account. Returns the account's remaining custom fields.
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/accounts/{id}/custom-fields/{field_id}
- AuthAPI key in header authorization
Path parameters
Guesty account ID or me
Custom field id
Response
The account's remaining custom fields, after the deletion. NOTE: items are keyed by _id here, not by fieldId as in the other custom field responses. Deleting is idempotent — a field_id that does not exist on the account is a no-op and still returns 200 with the unchanged list, not a 404.
Example response
[
{
"_id": "5dc03b42e28baf001e2b35d0"
}
]Changes
- breaking
the
response's property type changed fromobjectto no type for status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
api operation id
accountsCustomFieldDeletewas added - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added
subschema #1subschema #2to theresponse propertyallOflist for the response status
- breaking