PUT api/2.0/calendar/icsevent This function requires authentication

Description

Updates the existing iCal event in the selected calendar with the ID specified in the request.

Parameters
Name Description Type Example
eventId
sent in body
Event ID number 1234
calendarId
sent in body
Calendar ID string some text
ics
sent in body
Event in the iCal format string some text
alertType
sent in body
New event notification type Never, FiveMinutes, FifteenMinutes, HalfHour, Hour, TwoHours, Day, Default Never
sharingOptions
sent in body
New event sharing access parameters list of sharing options
fromCalDavServer
sent in body
Defines if the request is from the CalDav server or not Bool value true
ownerId
sent in body
New event owner ID string some text
Example
PUT api/2.0/calendar/icsevent
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "eventId": 1234,
  "calendarId": "some text",
  "ics": "some text",
  "alertType": "never",
  "sharingOptions": [
    {}
  ],
  "fromCalDavServer": true,
  "ownerId": "some text"
}
Returns

Updated event

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "objectId": "1",
      "sourceId": "calendarID",
      "title": "Event Name",
      "description": "Event Description",
      "start": "2020-12-01T06:36:10.8645482Z",
      "end": "2020-12-01T06:36:10.8645482Z",
      "allDay": false,
      "repeatRule": "",
      "isShared": true,
      "permissions": {
        "Data": {
          "actions": [
            {
              "id": "read",
              "name": "Read only",
              "defaultAction": true,
              "defaultStyle": "read"
            }
          ],
          "items": [
            {
              "id": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
              "name": "Everyone",
              "isGroup": true,
              "canEdit": true,
              "selectedAction": {
                "id": "read",
                "name": "Read only",
                "defaultAction": true,
                "defaultStyle": "read"
              }
            }
          ]
        }
      },
      "isEditable": false,
      "alert": {
        "Type": -1
      },
      "owner": {
        "objectId": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
        "name": "Valery Zykov"
      },
      "canUnsubscribe": true,
      "uniqueId": "1234wda",
      "status": 0,
      "TenantId": "1",
      "Todo": true
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <objectId>1</objectId>
    <sourceId>calendarID</sourceId>
    <title>Event Name</title>
    <description>Event Description</description>
    <start>2020-12-01T06:36:10.8645482Z</start>
    <end>2020-12-01T06:36:10.8645482Z</end>
    <allDay>False</allDay>
    <repeatRule />
    <isShared>True</isShared>
    <permissions>
      <Data>
        <actions>
          <id>read</id>
          <name>Read only</name>
          <defaultAction>True</defaultAction>
          <defaultStyle>read</defaultStyle>
        </actions>
        <items>
          <id>2fdfe577-3c26-4736-9df9-b5a683bb8520</id>
          <name>Everyone</name>
          <isGroup>True</isGroup>
          <canEdit>True</canEdit>
          <selectedAction>
            <id>read</id>
            <name>Read only</name>
            <defaultAction>True</defaultAction>
            <defaultStyle>read</defaultStyle>
          </selectedAction>
        </items>
      </Data>
    </permissions>
    <isEditable>False</isEditable>
    <alert>
      <Type>-1</Type>
    </alert>
    <owner>
      <objectId>2fdfe577-3c26-4736-9df9-b5a683bb8520</objectId>
      <name>Valery Zykov</name>
    </owner>
    <canUnsubscribe>True</canUnsubscribe>
    <uniqueId>1234wda</uniqueId>
    <status>0</status>
    <TenantId>1</TenantId>
    <Todo>True</Todo>
  </response>
</result>