POST api/UserCalendarEvents/{Id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

Body Parameters

UserCalendarEventDto
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

Description

string

None.

StartDate

date

None.

AddressStreet1

string

None.

AddressStreet2

string

None.

AddressCity

string

None.

AddressState

string

None.

AddressZip

string

None.

LatLon

DbGeography

None.

AppointmentNotes

string

None.

IsPrenatalVisit

boolean

None.

BelongsToUserId

globally unique identifier

None.

DidAttendPrenatalVisit

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "Description": "sample string 3",
  "StartDate": "2019-05-26T03:07:55.8448932-04:00",
  "AddressStreet1": "sample string 5",
  "AddressStreet2": "sample string 6",
  "AddressCity": "sample string 7",
  "AddressState": "sample string 8",
  "AddressZip": "sample string 9",
  "LatLon": null,
  "AppointmentNotes": "sample string 10",
  "IsPrenatalVisit": true,
  "BelongsToUserId": "c4b9d5d2-aba5-415c-9d57-6c3f55f27cbf",
  "DidAttendPrenatalVisit": true
}

application/xml, text/xml

Sample:
<UserCalendarEventDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <AddressCity>sample string 7</AddressCity>
  <AddressState>sample string 8</AddressState>
  <AddressStreet1>sample string 5</AddressStreet1>
  <AddressStreet2>sample string 6</AddressStreet2>
  <AddressZip>sample string 9</AddressZip>
  <AppointmentNotes>sample string 10</AppointmentNotes>
  <BelongsToUserId>c4b9d5d2-aba5-415c-9d57-6c3f55f27cbf</BelongsToUserId>
  <Description>sample string 3</Description>
  <DidAttendPrenatalVisit>true</DidAttendPrenatalVisit>
  <Id>1</Id>
  <IsPrenatalVisit>true</IsPrenatalVisit>
  <LatLon xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Data.Entity.Spatial" i:nil="true" />
  <StartDate>2019-05-26T03:07:55.8448932-04:00</StartDate>
  <Title>sample string 2</Title>
</UserCalendarEventDto>

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

Response Information

Resource Description

UserCalendarEventDto
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

Description

string

None.

StartDate

date

None.

AddressStreet1

string

None.

AddressStreet2

string

None.

AddressCity

string

None.

AddressState

string

None.

AddressZip

string

None.

LatLon

DbGeography

None.

AppointmentNotes

string

None.

IsPrenatalVisit

boolean

None.

BelongsToUserId

globally unique identifier

None.

DidAttendPrenatalVisit

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "Description": "sample string 3",
  "StartDate": "2019-05-26T03:07:55.845893-04:00",
  "AddressStreet1": "sample string 5",
  "AddressStreet2": "sample string 6",
  "AddressCity": "sample string 7",
  "AddressState": "sample string 8",
  "AddressZip": "sample string 9",
  "LatLon": null,
  "AppointmentNotes": "sample string 10",
  "IsPrenatalVisit": true,
  "BelongsToUserId": "952ffb7d-22fa-40d2-9459-103587f69fa8",
  "DidAttendPrenatalVisit": true
}

application/xml, text/xml

Sample:
<UserCalendarEventDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <AddressCity>sample string 7</AddressCity>
  <AddressState>sample string 8</AddressState>
  <AddressStreet1>sample string 5</AddressStreet1>
  <AddressStreet2>sample string 6</AddressStreet2>
  <AddressZip>sample string 9</AddressZip>
  <AppointmentNotes>sample string 10</AppointmentNotes>
  <BelongsToUserId>952ffb7d-22fa-40d2-9459-103587f69fa8</BelongsToUserId>
  <Description>sample string 3</Description>
  <DidAttendPrenatalVisit>true</DidAttendPrenatalVisit>
  <Id>1</Id>
  <IsPrenatalVisit>true</IsPrenatalVisit>
  <LatLon xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Data.Entity.Spatial" i:nil="true" />
  <StartDate>2019-05-26T03:07:55.845893-04:00</StartDate>
  <Title>sample string 2</Title>
</UserCalendarEventDto>