刪除決定規則 delete-decision-rule

有時可能必須移除(DELETE)決定規則。 這可透過向以下對象執行DELETE請求來完成 Offer Library API使用 id 要刪除的決定規則的。

API格式

DELETE /{ENDPOINT_PATH}/offer-rules/{ID}
參數
說明
範例
{ENDPOINT_PATH}
持續性API的端點路徑。
https://platform.adobe.io/data/core/dps
{ID}
您要刪除之實體的ID。
offerRule1234

要求

curl -X DELETE 'https://platform.adobe.io/data/core/dps/offer-rules/offerRule1234' \
-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}'

回應

成功的回應會傳回HTTP狀態200和空白內文。

您可以透過嘗試對決定規則進行查詢(GET)請求來確認刪除,並且應該會收到HTTP狀態404 (找不到),因為決定規則已移除。

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76