POST api/2.0/project/task/{taskid}
Creates the subtask with the selected title and responsible within the parent task specified in the request
Name |
Description |
Type |
Example |
taskid
sent in url
|
Parent task ID
|
number
|
1234
|
responsible
sent in body
|
Subtask responsible
|
guid
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
title
sent in body
|
Subtask title
|
string
|
some text
|
POST api/2.0/project/task/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"responsible": "9924256A-739C-462b-AF15-E652A3B1B6EB",
"title": "some text"
}
application/json
{
"status": 0,
"response": {
"canEdit": false,
"taskId": 0,
"id": 1233,
"title": "Sample subtask",
"description": "Sample description",
"status": 1,
"responsible": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"updatedBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"created": "2021-01-21T09:11:56.2212747Z",
"createdBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"updated": "2021-01-21T09:11:56.2212747Z"
}
}
text/xml
<result>
<status>0</status>
<response>
<canEdit>false</canEdit>
<taskId>0</taskId>
<id>1233</id>
<title>Sample subtask</title>
<description>Sample description</description>
<status>1</status>
<responsible>
<id>00000000-0000-0000-0000-000000000000</id>
<displayName>Mike Zanyatski</displayName>
<title>Manager</title>
<avatarSmall>url to small avatar</avatarSmall>
<profileUrl></profileUrl>
</responsible>
<updatedBy>
<id>00000000-0000-0000-0000-000000000000</id>
<displayName>Mike Zanyatski</displayName>
<title>Manager</title>
<avatarSmall>url to small avatar</avatarSmall>
<profileUrl></profileUrl>
</updatedBy>
<created>2021-01-21T09:11:56.2212747Z</created>
<createdBy>
<id>00000000-0000-0000-0000-000000000000</id>
<displayName>Mike Zanyatski</displayName>
<title>Manager</title>
<avatarSmall>url to small avatar</avatarSmall>
<profileUrl></profileUrl>
</createdBy>
<updated>2021-01-21T09:11:56.2212747Z</updated>
</response>
</result>