Delete promotion items in Vlocity Product Console by specifying them in the URI.
DEL /v2/epc/promotions/{promotion_ID}/items/{item_ID}
Remote Method
deletePromotionItem
REST Handler
APIPromotionItemRestHandler
Apex Remote Service
PCAppHandler
Package
Communication (vlocity_cmt)
API Parameters and Response Format
For API parameter names and descriptions, see the Swagger (OpenAPI) reference documentation for Industries EPC REST APIs.
Resource Information
| Response Format | JSON |
|---|---|
| Resource URL | /services/apexrest/{namespace}/v2/epc/promotions/{promotion_ID}/items/{item_ID} |
Example Request
DELETE /v2/epc/promotions/a3K3h0000006Ae0EAE/items/a3J3h000000I4KKEA0
Example Result
{
"epcResponse": {
"entities": [
{
"entity": {
"attributes": {
"type": "vlocity_cmt__PromotionItem__c",
"url": "/services/data/v52.0/sobjects/vlocity_cmt__PromotionItem__c/a3J3h000000I4KKEA0"
},
"Id": "a3J3h000000I4KKEA0"
}
}
],
"overallResult": "success"
}
}