Delete Promotions

Delete promotions in Vlocity Product Console by specifying them in the URI.

  • 1DEL /v2/epc/promotions?ids={promotions-id}
1-   ```nolang
2DEL /v2/epc/promotions/{promotions-id}

Remote Method 

1deletePromotion

REST Handler 

1APIPromotionRestHandler

Apex Remote Service 

1PCAppHandler

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 FormatJSON
Resource URL/services/apexrest/{namespace}/v2/epc/promotions?ids={promotions-id}

Example Request 

  • 1DELETE v2/epc/promotions?ids=a3K3h0000006AiyEAE
1-   ```nolang
2DELETE v2/epc/promotions/a3K3h0000006AiyEAE

Example Result 

1{
2    "epcResponse": {
3        "entities": [
4            {
5                "entity": {
6                    "attributes": {
7                        "type": "vlocity_cmt__Promotion__c",
8                        "url": "/services/data/v52.0/sobjects/vlocity_cmt__Promotion__c/a3K3h0000006AiyEAE"
9                    },
10                    "Id": "a3K3h0000006AiyEAE"
11                }
12            }
13        ],
14        "overallResult": "success"
15    }
16}