Impostare una classificazione nelle librerie set-rank-on-libraries
Metodo PUT che consente di impostare un ordine di classifica per tutte le librerie.
Richiesta
PUT https://api-places-dev.adobe.io/places/placesapi/v1/libraries/rank
Intestazioni
-H 'Authorization: Bearer <TOKEN>`
-H 'x-api-key: <API KEY>'
-H 'x-gw-ims-org-id: <ORGID>'
-H 'Accept-Language: en-US'
Dati PUT
"library_rank_order": ["dfcc5270-1d6d-4bc9-9cd9-85ecd5ebc12b","ea45781f-26af-44b1-b4f8-43baf5f0fe28"]
}
Risposta di esempio
{"library_rank_order" ["dfcc5270-1d6d-4bc9-9cd9-85ecd5ebc12b","ea45781f-26af-44b1-b4f8-43baf5f0fe28"]}
CURL, comando
curl -X PUT `'https://api-places.adobe.io/places/placesapi/v1/libraries/rank'` -H 'x-api-key: <API KEY>' -H 'Authorization: Bearer <TOKEN>' -H 'x-gw-ims-org-id: <ORGID>' -d '{"library_rank_order": ["dfcc5270-1d6d-4bc9-9cd9-85ecd5ebc12b","ea45781f-26af-44b1-b4f8-43baf5f0fe28"]}' -H "Content-Type: application/json"
IMPORTANT
Sostituire variabili quali
<API KEY>
, <TOKEN>
e <ORGID>
con valori effettivi.recommendation-more-help
475fad96-f29f-4dca-a109-68bf0557e825