Delete a decision item

Last update: 2024-08-29
  • Created for:
  • Experienced
    Developer

To remove a decision item, perform a DELETE request to the Offer Library API with the ID of the decision item you wish to delete.

API format

DELETE /{ENDPOINT_PATH}/offer-items/{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 delete. offerItem1234

Request

curl -X DELETE 'https://platform.adobe.io/data/core/dps/offer-items/offerItem1234' \
-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}' \
-H 'x-schema-id: {SCHEMA_ID}'

Response

A successful response returns HTTP status 200 and a blank body.

You can confirm the deletion by attempting a lookup (GET) request to the decision item. You should receive an HTTP status 404 (Not Found) because the decision item has been removed.

On this page