PUT api/todo/canceltodo

Request Information

URI Parameters

None.

Body Parameters

CancelTodoCommandDataContract
NameDescriptionTypeAdditional information
TodoId

integer

None.

ReasonOfCancellation

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TodoId": 1,
  "ReasonOfCancellation": "sample string 2"
}

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 'CancelTodoCommandDataContract'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.