프로필의 지리 단위 업데이트 updating-a-geographical-unit

  1. 지리적 단위 PKey를 검색하려면 geoUnitBase 리소스에 대해 GET 요청을 수행하십시오.
  2. 페이로드에 원하는 지리 단위 PKey를 사용하여 PATCH PKey에 대한 프로필 요청을 수행합니다.

샘플 요청

지리 단위 목록을 검색합니다.

-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>'

모든 지리 단위를 반환합니다. 프로필을 할당할 장치의 PKey를 검색합니다.

{
 "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)"
},

페이로드에서 원하는 지리적 단위의 PKey를 사용하여 프로필에 대한 PATCH 요청을 수행합니다.

-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 }
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff