复制任务(仅支持工作流项目)
PUT
https://open.teambition.com/api/v3/task/{taskId}/copy
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://open.teambition.com/api/v3/task//copy' \
--header 'Authorization: Bearer <appAccessToken>' \
--header 'X-Tenant-Id: 50c32af35a87e6b2...' \
--header 'X-Tenant-Type: organization' \
--header 'Content-Type: application/json' \
--data-raw ''
响应示例响应示例
{
" result": {
"id": "string",
"content": "string",
"note": "string",
"projectId": [
"string"
],
"ancestorIds": "string",
"parentTaskId": "string",
"tfsId": "string",
"tasklistId": "string",
"stageId": "string",
"tagIds": [
"string"
],
"creatorId": "string",
"executorId": "string",
"involveMembers": [
"string"
],
"priority": 0,
"recurrence": [
"string"
],
"isDone": true,
"isArchived": true,
"visible": "string",
"uniqueId": "string",
"startDate": "string",
"dueDate": "string",
"accomplishTime": "string",
"created": "string",
"updated": "string",
"sfcId": "string",
"customfields": [
{
"cfId": "string",
"type": "string",
"value": [
{
"id": "string",
"title": "string",
"metaString": "string"
}
]
}
]
},
"code": "string",
"errorMessage": "string"
}
请求参数
Path 参数
taskId
string
任务ID
Header 参数
Authorization
string
可选
默认值:
{{Authorization}}
X-Tenant-Id
string
企业 ID
默认值:
{{X-Tenant-Id}}
X-Tenant-Type
string
可选
默认值:
organization
Body 参数application/json
返回响应
修改于 2023-02-09 09:47:38