Delete locations

Bulk delete locations. The query filters are the same as for searching locations and select the candidate set; the body picks the locations within it. Provide ids, or explicitly set include to false to delete every location matching the filters (and every location outright when no filters are given); an empty body is rejected.

Required permission: Locations

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Returns locations where the name contains the given search terms.

string

Returns locations where the description contains the given text.

string

Comma-delimited list of type ids. Use -1 to include locations without a type. Values come from /api/property_values/location_types/values.

boolean

Whether the location is active or not. If not provided, returns locations regardless of status.

Body Params

The ids of the locations to delete

ids
array of doubles | null

The ids the operation applies to: an include list by default, or an exclude list when include is false. For deletes, required unless include is false.

ids
boolean | null

Whether ids is an include list (true, default) or an exclude list (false). Setting include to false with no ids applies the operation to every record matching the query filters.

Responses
200

OK

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!