POST api/CalendarEvents/{Id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

Body Parameters

Collection of CalendarEventDto
NameDescriptionTypeAdditional information
Id

integer

None.

LanguageId

integer

None.

Title

string

None.

Description

string

None.

StartDate

date

None.

EndDate

date

None.

AddressStreet1

string

None.

AddressStreet2

string

None.

AddressCity

string

None.

AddressState

string

None.

AddressZip

string

None.

LatLon

DbGeography

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Categories

Collection of CalendarEventCategoryDto

None.

Keywords

Collection of string

None.

Stages

Collection of string

None.

Request Formats

application/json, text/json

Sample:
[
  null,
  {
    "Id": 1,
    "LanguageId": 2,
    "Title": "sample string 3",
    "Description": "sample string 4",
    "StartDate": "2019-05-26T04:13:18.3114399-04:00",
    "EndDate": "2019-05-26T04:13:18.3114399-04:00",
    "AddressStreet1": "sample string 6",
    "AddressStreet2": "sample string 7",
    "AddressCity": "sample string 8",
    "AddressState": "sample string 9",
    "AddressZip": "sample string 10",
    "LatLon": null,
    "Latitude": null,
    "Longitude": null,
    "Categories": null,
    "Keywords": null,
    "Stages": null
  }
]

application/xml, text/xml

Sample:
<ArrayOfCalendarEventDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <CalendarEventDto i:nil="true" />
  <CalendarEventDto>
    <AddressCity>sample string 8</AddressCity>
    <AddressState>sample string 9</AddressState>
    <AddressStreet1>sample string 6</AddressStreet1>
    <AddressStreet2>sample string 7</AddressStreet2>
    <AddressZip>sample string 10</AddressZip>
    <Categories i:nil="true" />
    <Description>sample string 4</Description>
    <EndDate>2019-05-26T04:13:18.3114399-04:00</EndDate>
    <Id>1</Id>
    <Keywords xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
    <LanguageId>2</LanguageId>
    <LatLon xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Data.Entity.Spatial" i:nil="true" />
    <Latitude i:nil="true" />
    <Longitude i:nil="true" />
    <Stages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
    <StartDate>2019-05-26T04:13:18.3114399-04:00</StartDate>
    <Title>sample string 3</Title>
  </CalendarEventDto>
</ArrayOfCalendarEventDto>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.