POST api/CalendarEvents

Request Information

URI Parameters

None.

Body Parameters

CalendarEvent
NameDescriptionTypeAdditional information
EventId

integer

None.

EventDateTime

date

None.

UtilityId

integer

None.

Title

string

Max length: 200

Description

string

Max length: 200

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EventId": 1,
  "EventDateTime": "2020-08-28T07:37:44.8835883+00:00",
  "UtilityId": 3,
  "Title": "sample string 4",
  "Description": "sample string 5",
  "DateCreated": "2020-08-28T07:37:44.8835883+00:00",
  "DateUpdated": "2020-08-28T07:37:44.8835883+00:00",
  "CreatedBy": 8,
  "UpdatedBy": 9
}

application/xml, text/xml

Sample:
<CalendarEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <CreatedBy>8</CreatedBy>
  <DateCreated>2020-08-28T07:37:44.8835883+00:00</DateCreated>
  <DateUpdated>2020-08-28T07:37:44.8835883+00:00</DateUpdated>
  <Description>sample string 5</Description>
  <EventDateTime>2020-08-28T07:37:44.8835883+00:00</EventDateTime>
  <EventId>1</EventId>
  <Title>sample string 4</Title>
  <UpdatedBy>9</UpdatedBy>
  <UtilityId>3</UtilityId>
</CalendarEvent>

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

Response Information

Resource Description

CalendarEvent
NameDescriptionTypeAdditional information
EventId

integer

None.

EventDateTime

date

None.

UtilityId

integer

None.

Title

string

Max length: 200

Description

string

Max length: 200

DateCreated

date

None.

DateUpdated

date

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "EventId": 1,
  "EventDateTime": "2020-08-28T07:37:44.8835883+00:00",
  "UtilityId": 3,
  "Title": "sample string 4",
  "Description": "sample string 5",
  "DateCreated": "2020-08-28T07:37:44.8835883+00:00",
  "DateUpdated": "2020-08-28T07:37:44.8835883+00:00",
  "CreatedBy": 8,
  "UpdatedBy": 9
}

application/xml, text/xml

Sample:
<CalendarEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <CreatedBy>8</CreatedBy>
  <DateCreated>2020-08-28T07:37:44.8835883+00:00</DateCreated>
  <DateUpdated>2020-08-28T07:37:44.8835883+00:00</DateUpdated>
  <Description>sample string 5</Description>
  <EventDateTime>2020-08-28T07:37:44.8835883+00:00</EventDateTime>
  <EventId>1</EventId>
  <Title>sample string 4</Title>
  <UpdatedBy>9</UpdatedBy>
  <UtilityId>3</UtilityId>
</CalendarEvent>