[레거시]{class="badge informative"}
의사 결정 만들기 create-decision
IMPORTANT
이 페이지에서는 기존 의사 결정 관리 API를 다룹니다. 새로운 Decisioning 기능을 사용하는 경우 Decisioning API 개발자 안내서를 참조하세요.
사용 중인 기능을 모르시겠습니까? 의사 결정에 대해 알아보기.
Offer Library API에 대한 POST 요청을 수행하여 결정을 만들 수 있습니다.
Accept 및 Content-Type 헤더 accept-and-content-type-headers
다음 표는 요청 헤더의 Content-Type 및 Accept 필드를 구성하는 올바른 값을 보여 줍니다.
헤더 이름
값
Content-Type
application/jsonAPI 형식
POST /{ENDPOINT_PATH}/offer-decisions
매개 변수
설명
예
{ENDPOINT_PATH}지속성 API의 끝점 경로입니다.
https://platform.adobe.io/data/core/dps/요청
curl -X POST 'https://platform.adobe.io/data/core/offer-decisions' \
-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 Offer Decision",
"description": "Offer Decision description",
"status": "live",
"startDate": "2021-08-23T07:00:00.000+00:00",
"endDate": "2021-08-25T07:00:00.000+00:00",
"fallback": "fallbackOffer1234",
"criteria": [
{
"placements": [
"offerPlacement1234",
"offerPlacement5678"
],
"rank": {
"priority": 0,
"order": {
"orderEvaluationType": "ranking-strategy",
"rankingStrategy": "123456789123"
}
},
"profileConstraint": {
"profileConstraintType": "none"
},
"optionSelection": {
"filter": "offerCollection1234"
}
}
]
}'
응답
응답이 성공하면 고유한 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
journey-optimizer-help