Actualizar una biblioteca update-a-library
Método de PUT que permite actualizar una biblioteca.
Solicitud
PUT https://api-places.adobe.io/places/placesapi/v1/libraries/<lIBRARYID>
Encabezados
-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'
Cuerpo
{"name": "<NEW_LIBRARY_NAME>"}
Respuesta de ejemplo
{ "id": "449f08f3-eff5-4658-9329-2d9687af777e", "name": "Really facinating places", "customerID": "777F20F55BACA09E0A495D8F@AdobeOrg", "poiCount": 0 }
CURL, comando
Utilice el siguiente comando CURL para probar esta 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"
IMPORTANT
Reemplace variables como
<lIBRARYID>
, <API KEY>
, <TOKEN>
y <ORGID>
con valores reales.recommendation-more-help
475fad96-f29f-4dca-a109-68bf0557e825