POST api/Job

Issues a request that a job be cancelled if possbile

Request Information

URI Parameters

None.

Body Parameters

The cancellation request.

Dezrez.Core.DataContracts.External.Api.Job.Command.CancelJob.CancelJobCommandDataContract
NameDescriptionTypeAdditional information
JobReference

globally unique identifier

None.

CancellationReason

string

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CancelJobCommandDataContract'.

application/json, text/json

Sample:
{
  "JobReference": "af650f52-6771-4f58-9c4d-e039d09c8435",
  "CancellationReason": "sample string 2"
}

Response Information

Resource Description

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.