컬렉션 만들기 create-collection

컬렉션은 오퍼의 카테고리와 같이 마케터가 정의한 사전 정의된 조건을 기반으로 하는 오퍼의 하위 집합입니다.

에 POST 요청을 하여 컬렉션을 만들 수 있습니다. Offer Library API.

Accept 및 Content-Type 헤더 accept-and-content-type-headers

다음 표는 다음을 구성하는 유효한 값을 보여줍니다. Content-Type 요청 헤더의 필드:

헤더 이름
Content-Type
application/json

API 형식

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