Delete Promotions

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

  • DEL /v2/epc/promotions?ids={promotions-id}
    

-   ```nolang
DEL /v2/epc/promotions/{promotions-id}

Remote Method

deletePromotion

::include{src="../../shared/section_1b550308f050bdcd217cc8b49d44dd23.md"} ::include{src="../../shared/section_e19c74036499bf2a717d7fc5a0852bcd.md"} ::include{src="../../shared/section_0fcf481610065fd34ff442609bf2bba9.md"} ::include{src="../../shared/section_8dbb11b5b7cb6e771157050052d6eeed.md"}

Resource Information

Response Format JSON
Resource URL /services/apexrest/{namespace}/v2/epc/promotions?ids={promotions-id}

Example Request

  • DELETE v2/epc/promotions?ids=a3K3h0000006AiyEAE
    

-   ```nolang
DELETE v2/epc/promotions/a3K3h0000006AiyEAE

Example Result

{
    "epcResponse": {
        "entities": [
            {
                "entity": {
                    "attributes": {
                        "type": "vlocity_cmt__Promotion__c",
                        "url": "/services/data/v52.0/sobjects/vlocity_cmt__Promotion__c/a3K3h0000006AiyEAE"
                    },
                    "Id": "a3K3h0000006AiyEAE"
                }
            }
        ],
        "overallResult": "success"
    }
}