Eine POST -Methode, mit der Sie eine Bibliothek erstellen können.
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 }
Verwenden Sie den folgenden CURL-Befehl, um diese API zu testen:
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"
Ersetzen Sie Variablen wie <API KEY>
, <TOKEN>
und <ORGID>
mit tatsächlichen Werten.