PUT api/Admin/Calendars

Updates a Calendar.

Request Information

URI Parameters

None.

Body Parameters

UpdateCalendarRequest.

UpdateCalendarRequest
NameDescriptionTypeAdditional information
CalendarId

Calendar Id

integer

None.

ChangedBy

Changed by.

string

Required

Max length: 255

Name

Calendar name.

string

Required

Max length: 255

TimeZone

A valid .NET time zone.

string

Required

Max length: 255

Owner

Specifies the owner of the calendar.

string

Required

Max length: 255

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "CalendarId": 1,
  "ChangedBy": "sample string 2",
  "Name": "sample string 4",
  "TimeZone": "sample string 5",
  "Owner": "sample string 6"
}

application/xml, text/xml

Sample:
<UpdateCalendarRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO">
  <Name>sample string 4</Name>
  <Owner>sample string 6</Owner>
  <TimeZone>sample string 5</TimeZone>
  <CalendarId>1</CalendarId>
  <ChangedBy>sample string 2</ChangedBy>
</UpdateCalendarRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns 204 No Content on success.

None.