更新用户档案的组织实体
最近更新: 2024年7月19日
- 主题:
- API
创建对象:
- 有经验的
- 开发人员
- 对 orgUnitBase 资源执行GET请求以检索组织单位PKey
- 对用户档案PKey执行PATCH请求,并在有效负荷中使用所需的组织单位PKey。
示例请求
检索组织单位列表。
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/ \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
它会返回所有组织单位。 检索要为其分配配置文件的设备的密钥。
{
"PKey": "<PKEY>",
"created": "2019-04-02 22:36:13.252Z",
"desc": "",
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/orgUnitBase/<PKEY>",
"label": "Brand 4",
"lastModified": "2019-04-03 07:34:56.579Z",
"name": "brand4",
"parentTitle": "All (all)",
"title": "Brand 4 (brand1)"
},
对用户档案执行PATCH请求,并在有效负荷中使用所需组织单位的PKey。
-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 "orgUnit":{
-d "PKey":"<PKEY>"
-d }
-d }
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff