POST api/Admin/Calendars/Share
Shares a calendar. Returns a shared calendar key.
Request Information
URI Parameters
None.
Body Parameters
ShareCalendarRequest
ShareCalendarRequest| Name | Description | Type | Additional 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
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| Name | Description | Type | Additional 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>