建立選取策略 create-selection-strategy
您可以透過向優惠資料庫API提出POST要求來建立選擇策略。
API格式
POST /{ENDPOINT_PATH}/selection-strategies
參數
說明
範例
{ENDPOINT_PATH}
持續性API的端點路徑。
https://platform.adobe.io/data/core/dps
要求
curl -X POST 'https://platform.adobe.io/data/core/dps/selection-strategies' \
-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": "Selection Strategy One",
"description": "Selection Strategy",
"rank": {
"priority": 1,
"order": {
"orderEvaluationType": "static"
}
},
"profileConstraint": {
"profileConstraintType": "eligibilityRule",
"eligibilityRule": "offerRule1234"
},
"optionSelection": {
"filter": "itemCollection1234",
}
}'
回應
成功的回應會傳回新建立的選擇策略詳細資訊,包括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