POST api/travel/day/authorizedadult

Creates a new authorized adult or updates an existing one. If the authorized adult ID exists, it will be updated; otherwise, a new authorized adult will be created.

Request Information

URI Parameters

None.

Body Parameters

The AuthorizedAdult object containing the authorized adult information to create or update. Sent in the request body as JSON.

AuthorizedAdult
NameDescriptionTypeAdditional information
ID

integer

None.

LastName

string

None.

FirstName

string

None.

NickName

string

None.

Email

string

None.

Phone

string

None.

DOB

date

None.

Gender

Gender

None.

AvatarFileName

string

None.

Notes

string

None.

ReleaseCode

string

None.

ChildIDList

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "LastName": "sample string 2",
  "FirstName": "sample string 3",
  "NickName": "sample string 4",
  "Email": "sample string 5",
  "Phone": "sample string 6",
  "DOB": "2026-09-08T15:28:59.3337945-06:00",
  "Gender": 0,
  "AvatarFileName": "sample string 7",
  "Notes": "sample string 8",
  "ReleaseCode": "sample string 9",
  "ChildIDList": [
    1,
    2
  ]
}

application/javascript

Sample:
{"ID":1,"LastName":"sample string 2","FirstName":"sample string 3","NickName":"sample string 4","Email":"sample string 5","Phone":"sample string 6","DOB":"2026-09-08T15:28:59.3337945-06:00","Gender":0,"AvatarFileName":"sample string 7","Notes":"sample string 8","ReleaseCode":"sample string 9","ChildIDList":[1,2]}

application/xml, text/xml

Sample:
<AuthorizedAdult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <LastName>sample string 2</LastName>
  <FirstName>sample string 3</FirstName>
  <NickName>sample string 4</NickName>
  <Email>sample string 5</Email>
  <Phone>sample string 6</Phone>
  <DOB>2026-09-08T15:28:59.3337945-06:00</DOB>
  <Gender>Female</Gender>
  <AvatarFileName>sample string 7</AvatarFileName>
  <Notes>sample string 8</Notes>
  <ReleaseCode>sample string 9</ReleaseCode>
  <ChildIDList>
    <int>1</int>
    <int>2</int>
  </ChildIDList>
</AuthorizedAdult>

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

Response Information

Resource Description

Returns HTTP 200 (OK) with the created or updated AuthorizedAdult object.

AuthorizedAdult
NameDescriptionTypeAdditional information
ID

integer

None.

LastName

string

None.

FirstName

string

None.

NickName

string

None.

Email

string

None.

Phone

string

None.

DOB

date

None.

Gender

Gender

None.

AvatarFileName

string

None.

Notes

string

None.

ReleaseCode

string

None.

ChildIDList

Collection of integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "LastName": "sample string 2",
  "FirstName": "sample string 3",
  "NickName": "sample string 4",
  "Email": "sample string 5",
  "Phone": "sample string 6",
  "DOB": "2026-09-08T15:28:59.3458571-06:00",
  "Gender": 0,
  "AvatarFileName": "sample string 7",
  "Notes": "sample string 8",
  "ReleaseCode": "sample string 9",
  "ChildIDList": [
    1,
    2
  ]
}

application/javascript

Sample:
{"ID":1,"LastName":"sample string 2","FirstName":"sample string 3","NickName":"sample string 4","Email":"sample string 5","Phone":"sample string 6","DOB":"2026-09-08T15:28:59.3458571-06:00","Gender":0,"AvatarFileName":"sample string 7","Notes":"sample string 8","ReleaseCode":"sample string 9","ChildIDList":[1,2]}

application/xml, text/xml

Sample:
<AuthorizedAdult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ID>1</ID>
  <LastName>sample string 2</LastName>
  <FirstName>sample string 3</FirstName>
  <NickName>sample string 4</NickName>
  <Email>sample string 5</Email>
  <Phone>sample string 6</Phone>
  <DOB>2026-09-08T15:28:59.3458571-06:00</DOB>
  <Gender>Female</Gender>
  <AvatarFileName>sample string 7</AvatarFileName>
  <Notes>sample string 8</Notes>
  <ReleaseCode>sample string 9</ReleaseCode>
  <ChildIDList>
    <int>1</int>
    <int>2</int>
  </ChildIDList>
</AuthorizedAdult>