POST api/2.0/calendar/icstodo
Creates a new task in the selected calendar with the parameters specified in the request.
Name |
Description |
Type |
Example |
ics
sent in body
|
Task in the iCal format
|
string
|
some text
|
todoUid
sent in body
|
Task UID
|
string
|
some text
|
POST api/2.0/calendar/icstodo
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"ics": "some text",
"todoUid": "some text"
}
application/json
{
"status": 0,
"response": [
{
"objectId": "1",
"sourceId": "calendarID",
"title": "Todo Name",
"description": "Todo Description",
"start": "2020-12-01T06:36:10.8645482Z",
"completed": "2020-12-01T06:36:10.8645482Z",
"owner": {
"objectId": "2fdfe577-3c26-4736-9df9-b5a683bb8520",
"name": "Valery Zykov"
},
"uniqueId": "123wda",
"TenantId": 1
}
]
}
text/xml
<result>
<status>0</status>
<response>
<objectId>1</objectId>
<sourceId>calendarID</sourceId>
<title>Todo Name</title>
<description>Todo Description</description>
<start>2020-12-01T06:36:10.8645482Z</start>
<completed>2020-12-01T06:36:10.8645482Z</completed>
<owner>
<objectId>2fdfe577-3c26-4736-9df9-b5a683bb8520</objectId>
<name>Valery Zykov</name>
</owner>
<uniqueId>123wda</uniqueId>
<TenantId>1</TenantId>
</response>
</result>