A POST method that lets you delete multiple POIs.
POST https://api-places.adobe.io/places/placesapi/v1/pois/batchDelete
-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'
{ "ids": [ "<POIID>", "<POIID>", . . . "<POIID>", "<POIID>" ]}
If successful a Status of "204 No Content" is returned.
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.
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"]}