[레거시]{class="badge informative"}
의사 결정 규칙 만들기 create-decision-rule
IMPORTANT
이 페이지에서는 기존 의사 결정 관리 API를 다룹니다. 새로운 Decisioning 기능을 사용하는 경우 Decisioning API 개발자 안내서를 참조하세요.
사용 중인 기능을 모르시겠습니까? 의사 결정에 대해 알아보기.
의사 결정 규칙은 개인화된 오퍼에 추가되고 자격을 결정하기 위해 프로필에 적용되는 제약 조건입니다.
Accept 및 Content-Type 헤더 accept-and-content-type-headers
다음 표는 요청 헤더의 Content-Type 필드를 구성하는 올바른 값을 보여 줍니다.
헤더 이름
값
Content-Type
application/jsonAPI 형식
POST /{ENDPOINT_PATH}/offer-rules
매개 변수
설명
예
{ENDPOINT_PATH}지속성 API의 끝점 경로입니다.
https://platform.adobe.io/data/core/dps/요청
curl -X POST 'https://platform.adobe.io/data/core/dps/offer-rules' \
-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": "Sales rule",
"description": "Decisioning rule for sales",
"condition": {
"type": "PQL",
"format": "pql/text",
"value": "profile.person.name.firstName.equals(\"Joe\", false)"
},
"definedOn": {
"profile": {
"schema": {
"ref": "https://ns.adobe.com/xdm/context/profile_union",
"version": "1"
},
"referencePaths": [
"person.name.firstName"
]
}
}
}'
응답
성공한 응답이 새로 만든 결정 규칙 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