DELETE api/travel/day/traveldateparentnote

Deletes a travel date parent note. The note to delete is identified by the properties in the request body.

Request Information

URI Parameters

None.

Body Parameters

The TravelDateParentNote object identifying the note to delete. Sent in the request body as JSON.

TravelDateParentNote
NameDescriptionTypeAdditional information
TravelDateID

integer

None.

PersonID

integer

None.

Direction

Direction

None.

Notes

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TravelDateID": 1,
  "PersonID": 2,
  "Direction": 0,
  "Notes": "sample string 3"
}

application/javascript

Sample:
{"TravelDateID":1,"PersonID":2,"Direction":0,"Notes":"sample string 3"}

application/xml, text/xml

Sample:
<TravelDateParentNote xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <TravelDateID>1</TravelDateID>
  <PersonID>2</PersonID>
  <Direction>Undefined</Direction>
  <Notes>sample string 3</Notes>
</TravelDateParentNote>

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

Response Information

Resource Description

Returns HTTP 204 (No Content) if the note was successfully deleted.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/javascript

Sample:

Sample not available.