查询审批定义详情
查询审批定义详情
标签:审批定义
请求说明
字段 | 值 |
---|---|
请求地址 | https://openapi.wps.cn/v7/workflow/approval_defines/{id} |
HTTP 方法 | GET |
接口描述 | 查询审批定义详情 |
签名方式 | KSO-1 |
限频策略 | 无 |
权限要求 | 创建审批定义(应用授权) kso.workflow_approval_define.readwrite 查询审批定义(应用授权) kso.workflow_approval_define.read 创建审批定义(用户授权) kso.workflow_approval_define.readwrite 查询审批定义(用户授权) kso.workflow_approval_define.read |
请求头 (Headers)
属性名 | 类型 | 是否必填 | 描述 | 可选值 |
---|---|---|---|---|
X-Kso-Id-Type | string | 否 | 类型 * internal - 内部 * external - 外部 | internal , external |
路径参数 (Path)
属性名 | 类型 | 是否必填 | 描述 | 可选值 |
---|---|---|---|---|
id | string | 是 | 审批定义id | - |
查询参数 (Query)
属性名 | 类型 | 是否必填 | 描述 | 可选值 |
---|---|---|---|---|
operator | string | 否 | 操作者id,用于接口权限校验。应用授权必传,用户授权使用授权的用户信息,不使用该值 | - |
响应体(Response)
HTTP状态码: 200
响应体格式: application/json
没有可用的数据
响应体示例
json
{
"data": {
"created_by": {
"avatar": "string",
"company_id": "string",
"id": "string",
"name": "string",
"type": "user"
},
"ctime": "string",
"form_designs": [
{
"extra": "string",
"form_options": [
{
"key": "string",
"value": "string"
}
],
"id": "string",
"placeholder": "string",
"required": true,
"title": "string",
"type": "text_type_input"
}
],
"group_id": "string",
"icon": "tmp1",
"id": "string",
"name": "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"
},
"setting": {
"approval_deduplicate_mode": "none",
"approval_share_to_company": true,
"is_allow_resubmit": true,
"is_allow_revoke": true,
"is_allow_rollback": true,
"is_show_in_backend_page": true,
"is_show_in_home_page": true,
"must_with_refuse_reason": true,
"must_with_return_reason": true
},
"visible_scopes": [
{
"company_id": "string",
"is_admin": true,
"scope_id": "string",
"scope_type": "company"
}
]
},
"code": 0,
"msg": "string"
}