Een bibliotheek maken create-a-library
Een methode van de POST waarmee u een bibliotheek kunt creƫren.
Verzoek
POST https://api-places.adobe.io/places/placesapi/v1/libraries
Kopteksten
-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'
Lichaam
{"name": "<LIBRARY_NAME>"}
Samplereactie
{ "id": "449f08f3-eff5-4658-9329-2d9687af777e", "name": "Facinating places", "customerID": "777F20F55BACA09E0A495D8F@AdobeOrg", "poiCount": 0 }
CURL, opdracht
Gebruik de volgende CURL-opdracht om deze API te 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"
IMPORTANT
Vervang variabelen zoals
<API KEY>
, <TOKEN>
en <ORGID>
door werkelijke waarden.recommendation-more-help
475fad96-f29f-4dca-a109-68bf0557e825