文档首页/ ISDP/ API参考/ API接口/ 问题管理/ 新增问题类别(API名称:createIssueConfig)
更新时间:2024-01-18 GMT+08:00
分享

新增问题类别(API名称:createIssueConfig)

功能介绍

新增问题的类型,就是新建问题时需要选择的问题类型,分为大类和小类两种类型

相关接口

接口名称

调用说明

获取Token

调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。

URL

请求方式

HTTPS地址

服务架构

消息体类型

POST

https://isdp+域名/openapi/v1/openIssue/createIssueConfig

OpenAPI

application/json

请求头

KEY

VALUE

是否必填

描述

Content-Type

application/json

Authorization

bearer ${access_token}

bearer +“ ”+5.2.1中获取的access_token的值

请求参数

参数

类型

是否必填

描述

issueInstance

String

问题实例1 隐患,0 问题

parentIssue

Map

问题大类

parentIssue.kindName

String

问题大类名称

parentIssue.configId

Long

问题大类编码

childrenIssueList

List

问题小类

响应参数

参数

类型

描述

stateCode

String

响应状态码:0-成功;其他-失败

errorMessage

String

响应描述,错误提示

result

Object

问题类型

请求示例

大类:{"parentIssue":{"kindName":"ssss11111"},"childrenIssueList":[],"issueInstance":"1"}
小类:{"parentIssue":{"kindName":"ssss111112232","configId": 19122},"childrenIssueList":[{"kindName":"隐患类型1--01"},{"kindName":"隐患类型1--02"}],"issueInstance":"1"}

响应示例

{
"stateCode": "0",
    "errorMessage": null,
    "result": {
        "adminOrganization": null,
        "adminOrganizationName": null,
        "adminOrganizationPath": null,
        "appName": "isdp-qc-server",
        "checkBusiType": "",
        "configId": 18343,
        "createdBy": 390841,
        "createName": "zdrun-test",
        "creationDate": "2022-06-17T09:26:06.000+00:00",
        "creationTimestamp": 1655457966925,
        "dataSource": 0,
        "deleteFlag": 0,
        "entityName": "issueConfig",
        "issueInstance": "1",
        "kindLevel": 1,
        "kindName": "隐患类型1",
        "kindScene": "UDF8",
        "lastUpdateDate": "2022-06-17T09:26:06.000+00:00",
        "lastUpdatedBy": 390841,
        "lastUpdateName": "zdrun-test",
        "lastUpdateTimestamp": 1655457966925,
        "parentConfigId": 18343,
        "tenantId": 886,
        "childrenList": [
            {
                "dataSource": 0,
                "parentConfigId": 18343,
                "kindName": "隐患类型1--01",
                "kindLevel": 2,
                "issueConfigOrder": null,
                "kindScene": "UDF8",
                "checkBusiType": "",
                "deleteFlag": 0,
                "tenantId": 886,
                "createdBy": 390841,
                "createName": "zdrun-test",
                "creationDate": "2022-06-17T09:28:04.464+00:00",
                "lastUpdatedBy": 390841,
                "creationTimestamp": 1655458084446,
                "lastUpdateDate": "2022-06-17T09:28:04.464+00:00",
                "lastUpdateName": "zdrun-test",
                "lastUpdateTimestamp": 1655458084446,
                "issueInstance": "1",
                "checkIssueTag": null,
                "entityName": "issueConfig",
                "configId": 18344,
                "appName": "isdp-qc-server",
                "affectedRows": 1
            }
        ]
    }
}

状态码

状态码请参见状态码

错误码

错误码请参见错误码

相关文档