POST api/travel/day/traveldateparentnote

Creates a new travel date parent note or updates an existing one. If the note ID exists, it will be updated; otherwise, a new note will be created.

Request Information

URI Parameters

None.

Body Parameters

The TravelDateParentNote object containing the note information to create or update. 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 200 (OK) with the created or updated TravelDateParentNote object.

TravelDateParentNote
NameDescriptionTypeAdditional information
TravelDateID

integer

None.

PersonID

integer

None.

Direction

Direction

None.

Notes

string

None.

Response 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>