POST api/2.0/project/task/{copyFrom}/copy
Copies a task with the parameters specified in the request.
Name |
Description |
Type |
Example |
copyFrom
sent in url
|
Task ID from which the information is copied
|
number
|
1234
|
projectid
sent in body
|
Project ID
|
number
|
1234
|
description
sent in body
|
Task description
|
string
|
some text
|
deadline
sent in body
|
Task deadline
|
Date and Time
|
Roundtrip format: 2008-04-10T06-30-00.000Z
|
priority
sent in body
|
Task priority: Low|Normal|High
|
Normal, High, Low
|
|
title
sent in body
|
Task title
|
string
|
some text
|
milestoneid
sent in body
|
Task milestone ID
|
number
|
1234
|
responsibles
sent in body
|
List of task responsibles
|
Collection of guids
collection
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
notify
sent in body
|
Notifies responsibles about the task actions or not
|
Bool value
|
true
|
startDate
sent in body
|
Task start date
|
Date and Time
|
Roundtrip format: 2008-04-10T06-30-00.000Z
|
copySubtasks
sent in body
|
Specifies if the subtasks will be copied or not
|
Bool value
|
true
|
copyFiles
sent in body
|
Specifies if the files will be copied or not
|
Bool value
|
true
|
removeOld
sent in body
|
Specifies if the original task will be removed or not
|
Bool value
|
true
|
POST api/2.0/project/task/1234/copy
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"projectid": 1234,
"description": "some text",
"deadline": "2008-04-10T06-30-00.000Z",
"priority": "normal",
"title": "some text",
"milestoneid": 1234,
"responsibles": [
"00000000-0000-0000-0000-000000000000"
],
"notify": true,
"startDate": "2008-04-10T06-30-00.000Z",
"copySubtasks": true,
"copyFiles": true,
"removeOld": true
}
application/json
{
"status": 0,
"response": {
"canEdit": false,
"canCreateSubtask": false,
"canCreateTimeSpend": false,
"canDelete": false,
"canReadFiles": false,
"startDate": "2022-06-28T09:45:09.9060269Z",
"id": 10,
"title": "Sample Title",
"description": "Sample description",
"deadline": "2022-06-28T09:45:09.9060269Z",
"priority": 1,
"milestoneId": 123,
"projectOwner": {
"id": 123,
"title": "Sample project",
"status": 0,
"isPrivate": false
},
"status": 0,
"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": "2022-06-28T09:45:09.9060269Z",
"createdBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"updated": "2022-06-28T09:45:09.9060269Z",
"responsibles": null
}
}
text/xml
<result>
<status>0</status>
<response>
<canEdit>false</canEdit>
<canCreateSubtask>false</canCreateSubtask>
<canCreateTimeSpend>false</canCreateTimeSpend>
<canDelete>false</canDelete>
<canReadFiles>false</canReadFiles>
<startDate>2022-06-28T09:45:09.9060269Z</startDate>
<id>10</id>
<title>Sample Title</title>
<description>Sample description</description>
<deadline>2022-06-28T09:45:09.9060269Z</deadline>
<priority>1</priority>
<milestoneId>123</milestoneId>
<projectOwner>
<id>123</id>
<title>Sample project</title>
<status>0</status>
<isPrivate>false</isPrivate>
</projectOwner>
<status>0</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>2022-06-28T09:45:09.9060269Z</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>2022-06-28T09:45:09.9060269Z</updated>
<responsibles />
</response>
</result>