Listing
Synchronise Listings
This endpoint synchronises the listings in the given group with the provided listings.
POST
This endpoint allows you to update, create and delete listings for a group. The endpoint will attempt to reconcile every listing in the request body with an existing one for the given group and update it with the provided details. If a listing is not found, a new one will be created. Listings for the provided group that are not included in the request body will be deleted. If there are no listings passed in the request body, all listings for the provided porfolio will be deleted. You must provide either a group id via theDocumentation Index
Fetch the complete documentation index at: https://docs2.travtus.com/llms.txt
Use this file to discover all available pages before exploring further.
group_id parameter or a group external reference via the group_external_ref attribute.
If both are provided, the request will not be successful.
All date fields included in the body parameters need to be specified as ISO8601-formatted date strings.
Date fields should follow a “YYYY-MM-DD” format.
Header
The authentication token for your request
Body
The id of a group to use for the listing sync operation.Used for:
- searching for an existing listing record to update
- setting group assignment for a newly created listing record
- deleting listings in the group that are not provided in the request body
The external reference of a group to use for the listing sync operation.Used for:
- searching for an existing listing record to update
- setting group assignment for a newly created listing record
- deleting listings in the group that are not provided in the request body
Response
Whether the listing sync operation has been successful.
Errors
Listed below are common errors that may be returned by the endpoint, along with their corresponding status code. Status Code - 400Missing Authorization header
Expired Authorization header bearer token value
Invalid Authorization header bearer token value
Both group id and external ref provided for the listing synchronise operation
No group provided for the listing synchronise operation
Both the number_of_bathrooms and the bathrooms attributes are populated
Authenticated user does not have access to the requested group
No external reference provided for a listing
Date on listing is in an incorrect format
Vacancy is missing unit_type
Listing is missing listing_url
Listing has invalid unit_type
Listing has neither of the bathroom attributes provided
Listing does not have a bathroom attribute and the number of bathrooms is less than 1

