Show Menu
主题×

删除多个POI

允许您删除多个POI的POST方法。

请求

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.

CURL命令

使用以下CURL命令测试此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"

用实 <API KEY> <TOKEN> 值替 <ORGID> 换、 <PATHTOBATCHDELETEJSONFILE> 替换和替换。

示例JSON文件

以下是 batchDelete API的示例JSON文件:
{​"ids":["31a49d5c-c6ad-46ae-b88d-a6912a8a6b2f","6a78a729-7973-4373-9199-36da18cc5b8c","74eaa3da-2464-4298-9b6d-5376fa7ea00f"]​}