更新任务
POST
https://open.teambition.com/api/task/update
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.teambition.com/api/task/update' \
--header 'Authorization: Bearer <appAccessToken>' \
--header 'X-Tenant-Id: 50c32af35a87e6b2...' \
--header 'X-Tenant-Type: organization' \
--header 'Content-Type: application/json' \
--data-raw '{
"operatorId": "5a28e2036176bbde...",
"taskId": "5e141eaf7fd0daf8...",
"projectId": "5e0d98527d161c00...",
"templateId": "5e1421647fd0daf8...",
"tasklistId": "5d5798a2d4268209...",
"taskgroupId": "5d5798a2d4268209...",
"content": "第一个任务",
"executorId": "5a28e2036176bbde...",
"statusId": "5e142164aef01b07...",
"startDate": "2019-12-01T10:30:00Z",
"dueDate": "2019-12-05T18:00:00Z",
"accomplishDate": "2019-12-05T23:00:00Z",
"note": "第一个任务",
"priority": 0,
"visible": "projectMembers",
"parentTaskId": "",
"participants": [
"5a28e2036176bbde.."
],
"customfields": [
{
"cfId": "5e11b2b7ed69f340...",
"value": [
"abc"
]
}
]
}'
响应示例响应示例
{
"code": 200,
"errorMessage": "",
"result": {
"taskId": "5e141eaf7fd0daf8...",
"projectId": "5e0d98527d161c00...",
"templateId": "5e1421647fd0daf8...",
"tasklistId": "5d5798a2d4268209...",
"taskgroupId": "5d5798a2d4268209...",
"content": "第一个任务",
"executorId": "5a28e2036176bbde...",
"statusId": "5e142164aef01b07...",
"startDate": "2019-12-01T10:30:00Z",
"dueDate": "2019-12-05T18:00:00Z",
"note": "第一个任务",
"priority": 0,
"visible": "projectMembers",
"parentTaskId": "",
"ancestorIds": [],
"participants": [
"5a28e2036176bbde..."
],
"customfields": [
{
"cfId": "5e11b2b7ed69f340...",
"value": [
"abc"
]
}
],
"isDone": 0,
"creatorId": "5a28e2036176bbde...",
"created": "2019-12-01T10:30:00Z",
"modifierId": "5a28e2036176bbde...",
"updated": "2020-01-07T11:00:00Z"
}
}
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
默认值:
{{Authorization}}
X-Tenant-Id
string
企业 ID
默认值:
{{X-Tenant-Id}}
X-Tenant-Type
string
可选
默认值:
organization
Body 参数application/json
返回响应
修改于 2021-12-28 11:04:05