更新程式庫

可讓您更新程式庫的PUT方法。

請求

PUT https://api-places.adobe.io/places/placesapi/v1/libraries/<lIBRARYID>

標題

-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": "<NEW_LIBRARY_NAME>"}

範例回應

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

CURL命令

使用下列CURL命令測試此API:

curl -X PUT 'https://api-places.adobe.io/places/placesapi/v1/libraries/<LIBRARYID>' -H 'x-api-key: <API KEY>' -H 'Authorization: Bearer <TOKEN>' -H 'x-gw-ims-org-id: <ORGID>' -d '{"name":"Updated Library Name"}' -H "Content-Type: application/json"
重要

將變數(例如 <lIBRARYID><API KEY><TOKEN>和)取代 <ORGID> 為實際值。

本頁內容