자격 규칙 만들기 create-eligibility-rule
오퍼 라이브러리 API에 POST 요청을 하여 자격 규칙을 만들 수 있습니다.
API 형식
POST /{ENDPOINT_PATH}/eligibility-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": "test dule",
"description": "xxxxxx",
"exdRule": true,
"condition": {
"type": "PQL",
"format": "pql/text",
"value": "inSegment(\"849807b6-0a76-4895-96d9-89996477f23b\") and billingAddress.city.equals(\"san jose\", 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