Show Menu
主题×

创建库

允许您创建库的POST方法。

请求

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

标题

-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'

身体

{"name": "<LIBRARY_NAME>"}

示例响应

{       "id": "449f08f3-eff5-4658-9329-2d9687af777e",       "name": "Facinating places",      "customerID": "777F20F55BACA09E0A495D8F@AdobeOrg",       "poiCount": 0  }

CURL命令

使用以下CURL命令测试此API:
curl -X POST 'https://api-places.adobe.io/places/placesapi/v1/libraries' -H 'x-api-key: <API KEY>' -H 'Authorization: Bearer <TOKEN>' -H 'x-gw-ims-org-id: <ORGID>' -d '{"name":"New Library Name"}' -H "Content-Type: application/json"

用实际值替 <API KEY> <TOKEN> <ORGID> 和等变量。