Skip to navigation

Set the neighborhood data source for a listing

Persistently sets which compset a listing’s neighborhood data is based on. This is the same setting as the compset selector on the Neighborhood Data tab, and it affects the data returned by GET /v1/neighborhood_data.

Required fields depend on selected_source:

  • NL — br_selection is required.
  • MD — md_id and md_compset are both required.
  • CCC — no sub-options; requires the feature on the account.

Sub-options are validated against the listing’s own live options before anything is persisted, so an unknown value is rejected with a 400 that lists the valid alternatives rather than being silently ignored. Discover valid values with GET /v1/neighborhood_data/fetch_sources and GET /v1/neighborhood_data/get_md_compsets.

Requires write permission on the listing. Team-member API keys without write permission receive a 403.

Headers

X-API-KeystringRequired
API key for Customer API authentication.

Request

This endpoint expects an object.
listing_idstringRequired
Listing to update.
pmsstringRequired
PMS name for the listing.
selected_sourceenumRequired

Compset source to apply. Case-insensitive.

Allowed values:
br_selectionstringOptional

Required when selected_source is NL. Comma-separated bedroom counts, each of which must appear in the NL source’s br_range_options. Normalised on the way through, so "3, 2 ,2" is stored as "2,3".

md_idintegerOptional

Required when selected_source is MD. Must be the report_id of one of the account’s Market Dashboard reports; reports with valid: 0 are not selectable.

md_compsetstringOptional

Required when selected_source is MD. Must be the value of a compset returned by get_md_compsets for that md_id — not its label. Matched case-insensitively; the canonical spelling is what gets stored.

Response

Source applied
dataobjectOptional
statusstringOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error