POST api/Admin/Calendars/Share

Shares a calendar. Returns a shared calendar key.

Request Information

URI Parameters

None.

Body Parameters

ShareCalendarRequest

ShareCalendarRequest
NameDescriptionTypeAdditional information
CalendarId

Calendar id.

integer

Required

AuthorizationLevel

Authorization level for the shared calendar. Allowed levels: Write, Read and LimitedRead.

string

Required

CreatedBy

Created by.

string

Required

Remarks

A calendar can be shared with Write, Read and LimitedRead calendar authorization level.
If the calendar has been permanently deleted 404 Not found are returned.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "CalendarId": 1,
  "AuthorizationLevel": "sample string 2",
  "CreatedBy": "sample string 4"
}

application/xml, text/xml

Sample:
<ShareCalendarRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO">
  <AuthorizationLevel>sample string 2</AuthorizationLevel>
  <CalendarId>1</CalendarId>
  <CreatedBy>sample string 4</CreatedBy>
</ShareCalendarRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

200 OK on success.

ShareCalendarResponse
NameDescriptionTypeAdditional information
Id

integer

None.

Key

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Key": "sample string 2"
}

application/xml, text/xml

Sample:
<ShareCalendarResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO">
  <Id>1</Id>
  <Key>sample string 2</Key>
</ShareCalendarResponse>