
| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | 工作流实例写权限 | API Explorer |
| 第三方企业应用 | 暂不支持 | 暂不支持 | 暂不支持 |
| 第三方个人应用 | 暂不支持 | 暂不支持 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | invalidParameter | 添加审批评论参数错误 | 添加审批评论参数错误 |
| 400 | userNotExist | 用户不存在 | 用户不存在 |
| 400 | aflowProcessInstNotExist | 审批实例不存在 | 审批实例不存在 |
| 400 | aflowProcessInstCanNotBeExecuted | 审批状态异常,无法执行 | 审批状态异常,无法执行 |
| 400 | invalidInstanceId | 审批实例ID不能为空 | 审批实例ID不能为空 |
| 400 | invalidInstanceCommentText | 审批实例评论内容不能为空 | 审批实例评论内容不能为空 |
| 400 | invalidInstanceCommentUserId | 审批实例评论人userId不能为空 | 审批实例评论人userId不能为空 |
| 400 | internalError | %s | 系统内部异常 |
| 500 | systemError | 系统异常 | 系统异常 |
{
"processInstanceId" : "String",
"text" : "String",
"commentUserId" : "String",
"file" : {
"photos" : [ "String" ],
"attachments" : [ {
"spaceId" : "String",
"fileSize" : "String",
"fileId" : "String",
"fileName" : "String",
"fileType" : "String"
} ]
}
}curl --location --request POST '/v1.0/workflow/processInstances/comments' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"processInstanceId" : "String",
"text" : "String",
"commentUserId" : "String",
"file" : {
"photos" : [ "String" ],
"attachments" : [ {
"spaceId" : "String",
"fileSize" : "String",
"fileId" : "String",
"fileName" : "String",
"fileType" : "String"
} ]
}
}'{
"result": true,
"success": true
}