Cancel a Rule Promotion Job
POSThttps://useast.api.elasticpath.com/v2/rule-promotions/:uuid/jobs/:job-uuid/cancel
Cancels an asynchronous job for a rule promotion if its status is pending
or processing
.
- Only jobs that have not yet completed can be canceled.
- Once canceled, no further processing occurs, and partially completed results may be deleted.
Request
Responses
- 200
- 422
Successfully Canceled the Rule Promotion Job
Unprocessable Entity
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://useast.api.elasticpath.com/v2/rule-promotions/:uuid/jobs/:job-uuid/cancel");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear