Richiesta di esempio
Recupera l’elenco delle unità geografiche.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/geoUnitBase/ \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
Restituisce tutte le unità geografiche. Recuperate la chiave PK dell'unità a cui desiderate assegnare il profilo.
{
"PKey": "<PKEY>",
"created": "2019-04-06 22:36:19.089Z",
"desc": "",
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/geoUnitBase/<PKEY>",
"label": "Europe",
"lastModified": "2019-04-06 22:36:19.086Z",
"name": "eu",
"parentTitle": "All (all)",
"title": "Europe (eu)"
},
Esegui una richiesta PATCH sul profilo, con la PKey dell’unità geografica desiderata nel payload.
-X PATCH https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/profile/<PKEY> \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
-i
-d {
-d "geoUnit":{
-d "PKey":"<PKEY>"
-d }
-d }