创建收藏集限定符 create-tag
您可以通过向选件库API发出POST请求来创建收藏集限定符(以前称为“标记”)。
接受和内容类型标头 accept-and-content-type-headers
下表显示了包含 Content-Type 请求标头中的字段:
标题名称
值
Content-Type
application/json
API格式
POST /{ENDPOINT_PATH}/tags
参数
描述
示例
{ENDPOINT_PATH}
持久性API的端点路径。
https://platform.adobe.io/data/core/dps/
请求
curl -X POST 'https://platform.adobe.io/data/core/dps/tags' \
-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": "Black Friday",
"description": "Tag for black friday"
}'
响应
成功的响应会返回有关新创建的集合限定符的信息,包括其唯一的 id
. 您可以使用 id
在后续步骤中更新或删除您的收藏集限定符。 您可以使用唯一的集合限定词 id
,以创建收藏集和个性化优惠。
{
"id": "{ID}",
"sandboxId": "{SANDBOX_ID}",
"etag": 1,
"createdDate": "2023-09-07T12:36:26.602Z",
"lastModifiedDate": "2023-09-07T12:36:26.602Z",
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"createdByClientId": "{CREATED_CLIENT_ID}",
"lastModifiedByClientId": "{MODIFIED_CLIENT_ID}"
}
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76