Lookup a eligibility rule
Last update: March 10, 2025
- Topics:
- Decision Management
- API
- Collections
CREATED FOR:
- Experienced
- Developer
You can look up specific eligibility rule by making a GET request to the Offer Library API that includes the ID in the request path.
API format
GET /{ENDPOINT_PATH}/offer-rules/{ID}
Parameter | Description | Example |
---|---|---|
{ENDPOINT_PATH} | The endpoint path for persistence APIs. | https://platform.adobe.io/data/core/dps |
{ID} | The ID of the entity you wish to look up. | rule1234 |
Request
curl -X GET 'https://platform.adobe.io/data/core/dps/offer-rules/rule1234' \
-H 'Accept: *,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}'
Response
A successful response returns the details of the eligibility rule.
{
"created": "2024-10-28T01:18:08.506Z",
"modified": "2024-10-28T01:18:08.506Z",
"etag": 1,
"schemas": [
"https://ns.adobe.com/experience/offer-management/eligibility-rule"
],
"createdBy": "3254197F65569E890A49422F@658557135fa10b860a494019",
"lastModifiedBy": "3254197F65569E890A49422F@658557135fa10b860a494019",
"id": "dps:eligibility-rule:19af09a9ae45a8d3",
"name": "dasdsa",
"description": "",
"exdRule": false,
"condition": {
"type": "PQL",
"format": "pql/text",
"value": "personalEmail.address.equals(\"youz@adobe.com\", false)"
},
"segmentModel": {
"lifecycleState": "published",
"expression": {
"isValid": true,
"logicalOperator": "and",
"profileAttributesContainer": {
"exclude": false,
"items": [
{
"comparisonType": "equals",
"component": {
"id": "profile.personalEmail.address",
"__entity__": true,
"type": "Sz"
},
"isCaseSensitive": false,
"isPlaceholder": false,
"originalLocation": [],
"value": [
"youz@adobe.com"
],
"itemType": "segmentRule"
}
],
"logicalOperator": "and",
"itemType": "segmentContainer"
},
"xEventAttributesContainer": {
"exclude": false,
"items": [],
"logicalOperator": "then",
"itemType": "eventTypeCardContainer"
},
"itemType": "segmentDefinition"
},
"isMissingAnsibleModel": false,
"relationalExpression": false,
"deprecated": {
"status": false,
"reason": ""
},
"description": "",
"evaluationInfo": {
"batch": {
"enabled": true
},
"continuous": {
"enabled": false
},
"synchronous": {
"enabled": false
}
},
"labels": [],
"tags": [],
"canHaveFolder": true,
"mergePolicyId": "24526dbe-d615-4d41-9ebb-fd7f2b3dcdc2",
"name": "dasdsa",
"namespace": "ups"
}
}
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76