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_selectionis required.MD—md_idandmd_compsetare 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
Request
Compset source to apply. Case-insensitive.
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".
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.
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.