POST api/Admin/Calendars/Delete

Deletes a calendar.

Request Information

URI Parameters

None.

Body Parameters

DeleteCalendarRequest

DeleteCalendarRequest
NameDescriptionTypeAdditional information
CalendarId

Calendar Id

integer

None.

ChangedBy

Changed by.

string

Required

Max length: 255

Remarks

If the calendar is not found 404 Not found are returned.
If the calendar is deleted 405 Not allowed are returned.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "CalendarId": 1,
  "ChangedBy": "sample string 3"
}

application/xml, text/xml

Sample:
<DeleteCalendarRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO">
  <CalendarId>1</CalendarId>
  <ChangedBy>sample string 3</ChangedBy>
</DeleteCalendarRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

204 No Content on success.

None.