Skip to main content
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 the 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.
string
default:"none"
required
The authentication token for your request

Body

string
default:"none"
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
Please note that you can only pass one of the group_id and group_external_ref. Passing both will return an error.
string
default:"none"
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
Please note that you can only pass one of the group_id and group_external_ref. Passing both will return an error.
[object]
default:"none"

Response

boolean
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 - 400
Missing Authorization header
Status Code - 401
Expired Authorization header bearer token value
Status Code - 401
Invalid Authorization header bearer token value
Status Code - 400 Returned if both a group id and group_external_ref are provided
Both group id and external ref provided for the listing synchronise operation
Status Code - 400 Returned if no group_id or group_external_ref is provided
No group provided for the listing synchronise operation
Status Code - 400 Returned if both the number_of_bathrooms and the bathrooms attributes are populated
Both the number_of_bathrooms and the bathrooms attributes are populated
Status Code - 401 Returned if the user does not have access to the provided group
Authenticated user does not have access to the requested group
Status Code - 401 Returned if no external reference is provided for one of the listings
No external reference provided for a listing
Status Code - 401 Returned if any of the dates provided on a listing are in an incorrect format
Date on listing is in an incorrect format
Status Code - 401 Returned if any of the listings are missing a unit_type field
Vacancy is missing unit_type
Status Code - 401 Returned if any of the listings are missing the listing_url field
Listing is missing listing_url
Status Code - 401 Returned if any of the listings have an invalid unit_type
Listing has invalid unit_type
Status Code - 401 Returned if neither of the bathroom attributes are provided
Listing has neither of the bathroom attributes provided
Status Code - 401 Returned if the bathroom attribute is not provided and the number of bathrooms is less than 1
Listing does not have a bathroom attribute and the number of bathrooms is less than 1