SysDeletePromotion
Deletes the specified promotion from the server.
Service | Operation |
---|---|
promotions | SYS_DELETE_PROMOTION |
Method Parameters
Parameter | Description |
---|---|
promotionId | ID uniquely identifying the promotion to update. Note: If promotionId is included in the promotionJson, it is ignored. The promotionId provided as a direct parameter takes priority. |
version | Version of the promotion to update. Can bypass version check by passing in -1. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var promotionId = 1;
var version = 2;
var promotionsProxy = bridge.getPromotionsServiceProxy();
var postResult = promotionsProxy.sysDeletePromotion(promotionId, version);
if (postResult.status == 200) {
// Success!
}
{
"service": "promotions",
"operation": "SYS_DELETE_PROMOTION",
"data": {
"promotionId": 1,
"version": 1
}
}
JSON Response
{
"data": null,
"status": 200
}