배치 만들기 create-placement
에 POST 요청을 하여 배치를 생성할 수 있습니다. Offer Library API.
Accept 및 Content-Type 헤더 accept-and-content-type-headers
다음 표는 다음을 구성하는 유효한 값을 보여줍니다. Content-Type 요청 헤더의 필드:
헤더 이름
값
Content-Type
application/json
API 형식
POST /{ENDPOINT_PATH}/placements
매개변수
설명
예
{ENDPOINT_PATH}
지속성 API의 끝점 경로입니다.
https://platform.adobe.io/data/core/dps/
요청
curl -X POST 'https://platform.adobe.io/data/core/dps/placements' \
-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": "New placement",
"description": "Placement description",
"componentType": "html",
"channel": "https://ns.adobe.com/xdm/channel-types/email",
"itemCount": 1,
"allowDuplicatePlacements": false,
"returnContent": true,
"returnMetaData": {
"decisionName": false,
"offerName": false,
"offerAttributes": false,
"offerPriority": false,
"placementName": false,
"channelType": false,
"contentType": false
}
}'
응답
성공적으로 응답하면 새로 만든 배치 및 배치의 세부 정보가 반환됩니다 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