
| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | 工作流实例写权限 | API Explorer |
| 第三方企业应用 | 支持 | 工作流实例写权限 | API Explorer |
| 第三方个人应用 | 暂不支持 | 工作流实例写权限 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | param.blank | %s参数不能为空 | toUserId参数不能为空 |
| 400 | param.illegal | 不合法的参数%s | 不合法的参数taskId |
| 400 | task.status.error | 当前任务状态不是运行中不支持转交操作 | 当前任务状态不是运行中不支持转交操作 |
| 400 | instance.status.error | 当前流程实例状态不是运行中不支持转交操作 | 当前流程实例状态不是运行中不支持转交操作 |
| 400 | param.illegal.operator | 不合法的参数operateUserId | 不合法的参数operateUserId |
| 400 | internalError | %s | 系统内部异常 |
| 500 | system.error | 系统错误 | 系统错误 |
{
"taskId" : Long,
"toUserId" : "String",
"remark" : "String",
"operateUserId" : "String",
"actionName" : "String",
"file" : {
"photos" : [ "String" ],
"attachments" : [ {
"spaceId" : "String",
"fileSize" : "String",
"fileId" : "String",
"fileName" : "String",
"fileType" : "String"
} ]
}
}curl --location --request POST '/v1.0/workflow/tasks/redirect' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"taskId" : Long,
"toUserId" : "String",
"remark" : "String",
"operateUserId" : "String",
"actionName" : "String",
"file" : {
"photos" : [ "String" ],
"attachments" : [ {
"spaceId" : "String",
"fileSize" : "String",
"fileId" : "String",
"fileName" : "String",
"fileType" : "String"
} ]
}
}'{
"result": true
}