创建用户档案

创建用户档案是使用用户档案资源上的​POST​请求执行的。

注意

如果要将orgUnit关联到创建的用户档案,您需要将用户档案资源与此字段扩展,并在发布扩展后,对ProfileAndServicesExt端点执行POST请求。

有关用户档案资源扩展的详细信息,请参阅活动文档


示例请求

使用电子邮件“john.doe@mail.com”创建POST的示例用户档案请求。

-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",
    ...
}

在此页面上

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now