v1Resources/Listings Published/postSet a listing opt-out

Set a listing opt-out

Requires Listings access and access to the location. Opting out hides this directory for the client, prevents new listing work and cancels unsent work. The listing history and live provider listing remain intact. Opting back in cannot override the client’s publisher set. Changes are audited against the authenticated user.

post/api/v1/listings/opt-out
listings:write
Request body
locationIdstringrequired
Location ID or public ID.
siteIdintegerrequired
Numeric directory ID from the site catalog.
optedOutbooleanrequired
true excludes this location-directory pair; false restores it subject to publisher-set restrictions.
Response
dataobjectoptional
listingIdstringoptional
siteIdintegeroptional
optedOutbooleanoptional
canceledOrderItemIdsarray of stringoptional
Errors
400The request is missing a required parameter or is otherwise malformed.
401Missing, invalid, expired, or revoked API key.
403The key lacks the required scope, or isn't authorized for this client/location.
404The resource wasn't found, or doesn't belong to your agency.
409The location must be archived, a duplicate identity exists, or content checks held the action.
422The operation needs attention or could not be completed.
429Too many requests. Retry after the number of seconds in the Retry-After header.
503The operation needs attention or could not be completed.
post/api/v1/listings/opt-out
Your API key
Request body*
{}

Guides that use this resource