Show Menu
TOPICS×

Delete multiple POIs

A POST method that lets you delete multiple POIs.

Request

POST https://api-places.adobe.io/places/placesapi/v1/pois/batchDelete

Headers

-H' Content-Type: application/json'  -H 'Authorization: Bearer <TOKEN>'  -H 'x-api-key: <API KEY>'  -H 'x-gw-ims-org-id: <ORGID>'  -H 'Accept-Language: en-US'

Body

{  "ids": [    "<POIID>",    "<POIID>",    .    .    .    "<POIID>",    "<POIID>"  ]}

Sample Response

If successful a Status of "204 No Content" is returned.

CURL command

Use the following CURL command to test this API:
curl -X POST 'https://api-places.adobe.io/places/placesapi/v1/pois/batchDelete' -H 'x-api-key: <API KEY>' -H 'Authorization: Bearer <TOKEN>' -H 'x-gw-ims-org-id: <ORGID>' --data-binary "@<PATHTOBATCHDELETEJSONFILE>" -H "Content-Type: application/json"

Replace <API KEY> , <TOKEN> , <ORGID> , and <PATHTOBATCHDELETEJSONFILE> with real values.

Sample JSON file

Here is the sample JSON file for the batchDelete API:
{​"ids":["31a49d5c-c6ad-46ae-b88d-a6912a8a6b2f","6a78a729-7973-4373-9199-36da18cc5b8c","74eaa3da-2464-4298-9b6d-5376fa7ea00f"]​}