更新审批定义
更新审批定义
标签:审批定义
请求说明
字段 | 值 |
---|---|
请求地址 | https://openapi.wps.cn/v7/workflow/approval_defines/{id}/update |
HTTP 方法 | POST |
接口描述 | 更新审批定义 |
签名方式 | KSO-1 |
限频策略 | 无 |
权限要求 | 创建审批定义(应用授权) kso.workflow_approval_define.readwrite |
请求头 (Headers)
属性名 | 类型 | 是否必填 | 描述 | 可选值 |
---|---|---|---|---|
X-Kso-Id-Type | string | 否 | 类型 * internal - 内部 * external - 外部 | internal , external |
路径参数 (Path)
属性名 | 类型 | 是否必填 | 描述 | 可选值 |
---|---|---|---|---|
id | string | 是 | 审批定义id | - |
请求体(Body)
请求体格式: application/json
没有可用的数据
请求体示例
json
{
"form_defines": [
{
"extra": "string",
"form_options": [
{
"key": "string",
"value": "string"
}
],
"id": "string",
"placeholder": "string",
"required": true,
"title": "string",
"type": "text_type_input"
}
],
"icon": "tmp1",
"name": "string",
"operator": "string",
"process_define": {
"nodes": [
{
"child_nodes": [
"string"
],
"condition_groups": [
{
"conditions": [
{
"custom_data_rule": "string",
"form_id": "string",
"rule": "belongs",
"type": "text_type_input",
"value": "string"
}
]
}
],
"extra": {
"config": {
"add_node_forbidden": true,
"edit_forbidden": true,
"remove_forbidden": true
}
},
"id": "string",
"name": "string",
"next_node_id": "string",
"task": {
"task_approve": {
"approval_rule": "step",
"select_type": "single_choice",
"target": {
"level": 0,
"select_ranges": [
{
"select_type": "user",
"select_value": "string"
}
],
"user_group_ids": [
"string"
],
"user_ids": [
"string"
],
"user_type": "optional"
},
"user_empty_policy": "transfer_to_admin"
},
"task_cc": {
"is_allow_add_cc": true,
"target": {
"level": 0,
"select_ranges": [
{
"select_type": "user",
"select_value": "string"
}
],
"user_group_ids": [
"string"
],
"user_ids": [
"string"
],
"user_type": "optional"
}
},
"type": "approval"
},
"type": "sequence"
}
],
"root": "string"
},
"visible_scopes": [
{
"company_id": "string",
"is_admin": true,
"scope_id": "string",
"scope_type": "company"
}
]
}
响应体(Response)
HTTP状态码: 200
响应体格式: application/json
没有可用的数据
响应体示例
json
{
"code": 0,
"msg": "string"
}