Lookup a selection strategy
Last update: August 29, 2024
- Topics:
- Decision Management
- API
- Collections
CREATED FOR:
- Experienced
- Developer
You can look up a specific selection strategy by making a GET request to the Offer Library API that includes the id in the request path.
API format
GET /{ENDPOINT_PATH}/selection-strategies/{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. | selectionStrategy1234 |
Request
curl -X GET 'https://platform.adobe.io/data/core/dps/selection-strategies/selectionStrategy1234' \
-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 selection strategy.
{
"created": "2024-02-08T03:01:50.924Z",
"modified": "2024-02-16T23:03:03.019Z",
"etag": 4,
"schemas": [
"https://ns.adobe.com/experience/offer-management/selection-strategy;version=0.2"
],
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"id": "selectionStrategy1234",
"name": "Selection Strategy One",
"description": "Selection Strategy",
"rank": {
"priority": 1,
"order": {
"orderEvaluationType": "static"
}
},
"profileConstraint": {
"profileConstraintType": "eligibilityRule",
"eligibilityRule": "offerRule1234"
},
"optionSelection": {
"filter": "itemCollection1234",
}
}
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76