[旧版]{class="badge informative"}
创建收藏集 create-collection
TIP
决策是 Adobe Journey Optimizer 的全新决策功能,现已通过基于代码的体验和电子邮件渠道提供!了解详情
集合是基于营销人员定义的预定义条件的优惠的子集,如优惠的类别。
您可以通过向Offer Library API发出POST请求来创建收藏集。
接受和内容类型标头 accept-and-content-type-headers
下表显示了请求标头中包含 Content-Type 字段的有效值:
标头名称
值
Content-Type
application/jsonAPI格式
POST /{ENDPOINT_PATH}/offer-collections
参数
描述
示例
{ENDPOINT_PATH}持久性API的端点路径。
https://platform.adobe.io/data/core/dps/请求
curl -X POST 'https://platform.adobe.io/data/core/dps/offer-collections' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {IMS_ORG}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '{
"name": "Test Collection with tags",
"filterType": "any-tags",
"ids": [
"tag1234"
],
"labels": [
"core/C5",
"custom/myLabel"
]
}'
响应
成功的响应返回有关新创建的收藏集的信息,包括其id。 您可以在后续步骤中使用id来更新或删除您的收藏集,或在以后的教程中创建决策。
{
"etag": 1,
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"id": "{ID}",
"sandboxId": "{SANDBOX_ID}",
"createdDate": "2023-05-31T15:09:11.771Z",
"lastModifiedDate": "2023-05-31T15:09:11.771Z",
"createdByClientId": "{CREATED_CLIENT_ID}",
"lastModifiedByClientId": "{MODIFIED_CLIENT_ID}"
}
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76