Get Started
Usage API
More information

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

Description

Updates the existing task with the parameters specified in the request.

Parameters
Name Description Type Example
todoId
sent in body
Task ID string some text
calendarId
sent in body
Calendar ID string some text
ics
sent in body
Task in the iCal format string some text
fromCalDavServer
sent in body
Defines if the request is from the CalDav server or not Bool value true
Example
PUT api/2.0/calendar/icstodo
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "todoId": "some text",
  "calendarId": "some text",
  "ics": "some text",
  "fromCalDavServer": true
}
Returns

Updated task

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "owner": {
        "objectId": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
        "name": "Valery Zykov"
      },
      "start": "2021-10-22T12:03:55.8982965Z",
      "description": "Todo Description",
      "title": "Todo Name",
      "objectId": "1",
      "sourceId": "calendarID",
      "completed": "0001-01-01T00:00:00.0000000Z"
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <owner>
      <objectId>2fdfe577-3c26-4736-9df9-b5a683bb8520</objectId>
      <name>Valery Zykov</name>
    </owner>
    <start>2021-10-22T12:03:55.8982965Z</start>
    <description>Todo Description</description>
    <title>Todo Name</title>
    <objectId>1</objectId>
    <sourceId>calendarID</sourceId>
    <completed>0001-01-01T00:00:00.0000000Z</completed>
  </response>
</result>