POST api/CalendarEventCategories/{Id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

Body Parameters

Collection of CalendarEventCategoryDto
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

IconClass

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Title": "sample string 2",
    "IconClass": "sample string 3"
  },
  {
    "Id": 1,
    "Title": "sample string 2",
    "IconClass": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCalendarEventCategoryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <CalendarEventCategoryDto>
    <IconClass>sample string 3</IconClass>
    <Id>1</Id>
    <Title>sample string 2</Title>
  </CalendarEventCategoryDto>
  <CalendarEventCategoryDto>
    <IconClass>sample string 3</IconClass>
    <Id>1</Id>
    <Title>sample string 2</Title>
  </CalendarEventCategoryDto>
</ArrayOfCalendarEventCategoryDto>

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.