




| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | 项目应用任务写权限 | API Explorer |
| 第三方企业应用 | 支持 | 项目应用任务写权限 | API Explorer |
| 第三方个人应用 | 暂不支持 | 项目应用任务写权限 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | user.not.exist | user not exist | 用户在当前企业中不存在 |
| 400 | org.not.exist | org not exist | 当前企业在Teambition中不存在 |
| 500 | server.error | %s | 请参考ErrorMessage中的errorMessage内容 |
{
"projectId" : "String",
"content" : "String",
"executorId" : "String",
"dueDate" : "String",
"note" : "String",
"priority" : Integer,
"customfields" : [ {
"customfieldName" : "String",
"customfieldId" : "String",
"value" : [ {
"title" : "String"
} ]
} ],
"stageId" : "String",
"parentTaskId" : "String",
"scenariofieldconfigId" : "String",
"startDate" : "String",
"visible" : "String"
}curl --location --request POST '/v1.0/project/users//tasks' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"projectId" : "String",
"content" : "String",
"executorId" : "String",
"dueDate" : "String",
"note" : "String",
"priority" : Integer,
"customfields" : [ {
"customfieldName" : "String",
"customfieldId" : "String",
"value" : [ {
"title" : "String"
} ]
} ],
"stageId" : "String",
"parentTaskId" : "String",
"scenariofieldconfigId" : "String",
"startDate" : "String",
"visible" : "String"
}'{
"result": {
"taskId": "string",
"content": "string",
"involveMembers": [
"string"
],
"projectId": "string",
"executorId": "string",
"creatorId": "string",
"created": "string",
"updated": "string",
"note": "string",
"dueDate": "string",
"priority": 0,
"customfields": [
{
"customfieldId": "string",
"value": [
{
"title": "string"
}
]
}
]
}
}