建立配置式時,在配置式資源上使用POST請求執行。
如果要將orgUnit關聯到建立的配置檔案,您需要將此欄位擴展配置檔案資源,並在發佈擴展後,對ProfileAndServicesExt端點執行POST請求。
如需描述檔資源擴充功能的詳細資訊,請參閱促銷活動檔案。
請求範例
建立描述檔的範例POST要求,電子郵件為「john.doe@mail.com」。
-X POST https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>' \
-i
-d '{"email":"john.doe@mail.com"}'
它會傳回新建立的設定檔,並加上「john.doe@mail.com」電子郵件地址。
{
"PKey": "<PKEY>",
"firstName": "John",
"lastName":"Doe",
"birthDate": "1980-10-24",
"email": "john.doe@mail.com",
...
}