



| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | 工作流实例写权限 | API Explorer |
| 第三方企业应用 | 支持 | 工作流实例写权限 | API Explorer |
| 第三方个人应用 | 暂不支持 | 工作流实例写权限 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | targetSelectApproverScopeError | 自选审批人不在规定范围内 | 自选审批人不在规定范围内 |
| 400 | targetSelectApproverMissing | 自选审批人缺失 | 自选审批人缺失 |
| 400 | invalidParameter | 参数错误 | 参数错误 |
| 400 | processInstanceInvalidParameter | 审批实例参数错误 | 审批实例参数错误 |
| 400 | processInstanceStartFailed | 创建审批实例失败 | 创建审批实例失败 |
| 400 | needAuth | 没有发起审批的权限 | 没有发起审批的权限 |
| 400 | invalidAgentId | 无效的微应用ID | 无效的微应用ID |
| 400 | processGroupGetFailed | 获取审批流分组失败 | 获取审批流分组失败 |
| 400 | processCodeError | 获取审批模板失败或者模板已被删除 | 获取审批模板失败或者模板已被删除 |
| 400 | processSetupNoPermission | 无操作审批流的权限 | 无操作审批流的权限 |
| 400 | processGetFailed | 获取审批流失败 | 获取审批流失败 |
| 400 | formConverterError | 表单数据校验失败,失败控件:%s | 表单数据校验失败 |
| 400 | illegalComponent | 表单组件入参错误 | 表单组件入参错误 |
| 400 | sysErrror | 创建审批实例系统异常 | 创建审批实例系统异常 |
| 400 | internalError | %s | 系统内部异常 |
| 500 | systemError | 系统异常 | 系统异常 |
{
"originatorUserId" : "String",
"processCode" : "String",
"deptId" : Long,
"microappAgentId" : Long,
"approvers" : [ {
"actionType" : "String",
"userIds" : [ "String" ]
} ],
"ccList" : [ "String" ],
"ccPosition" : "String",
"targetSelectActioners" : [ {
"actionerKey" : "String",
"actionerUserIds" : [ "String" ]
} ],
"formComponentValues" : [ {
"name" : "String",
"value" : "String"
} ],
"RequestId" : "String"
}curl --location --request POST '/v1.0/workflow/processInstances' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"originatorUserId" : "String",
"processCode" : "String",
"deptId" : Long,
"microappAgentId" : Long,
"approvers" : [ {
"actionType" : "String",
"userIds" : [ "String" ]
} ],
"ccList" : [ "String" ],
"ccPosition" : "String",
"targetSelectActioners" : [ {
"actionerKey" : "String",
"actionerUserIds" : [ "String" ]
} ],
"formComponentValues" : [ {
"name" : "String",
"value" : "String"
} ],
"RequestId" : "String"
}'{
"instanceId": "string"
}