新增现场检查批次

更新时间:2021-10-12 16:18:15

接口说明

新增现场检查批次

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/check-batch/create

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
project_id body string 39ff70b4-7376-6fc3-0f15-2ce1824c7e8d 项目ID
cur_user_id body string 39ff70aa-a41b-4afe-720d-2855990abe03 当前用户ID
bidsection_id body string 39ff70bb-a8f5-a78d-147e-28bb40f49781 标段ID
name body string weij-批次5-api 批次名称
repair_deadline body number 7 整改期限
in_charge_by body string 39ff70aa-a41b-4afe-720d-2855990abe03 管理员
batch_ccs body array 抄送人ID数组
batch_users body array 负责人ID数组
tenant_code query string zjalpha 租户code

请求示例

{
    "project_id":"39ff70b4-7376-6fc3-0f15-2ce1824c7e8d",
    "cur_user_id":"39ff70aa-a41b-4afe-720d-2855990abe03",
    "bidsection_id":"39ff70bb-a8f5-a78d-147e-28bb40f49781",
    "name":"weij-批次5-api",
    "repair_deadline":7,
    "in_charge_by":"39ff70aa-a41b-4afe-720d-2855990abe03",
    "batch_ccs":["39ff70aa-a41b-4afe-720d-2855990abe03"],
    "batch_users":["39ff70aa-a41b-4afe-720d-2855990abe03"]
}

返回成功示例

{
    "errcode": 0,
    "errmsg": "请求成功",
    "data": {
        "id": "39ff80c7-d4a4-3a0b-27d9-c4d96e80ee11",
        "root_id": "39ff80c7-d4a4-3a0b-27d9-c4d96e80ee11",
        "batch_type": "安全文明",
        "proj_id": "39ff70b4-7376-6fc3-0f15-2ce1824c7e8d",
        "bidsection_id": "39ff70bb-a8f5-a78d-147e-28bb40f49781",
        "name": "weij-批次5-api",
        "repair_deadline": 7,
        "in_charge_by": "39ff70aa-a41b-4afe-720d-2855990abe03"
    }
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number
errmsg string
data object
data.id string
data.root_id string
data.batch_type string
data.proj_id string
data.bidsection_id string
data.name string
data.repair_deadline number
data.in_charge_by string

失败返回示例

{
    "errcode": 4001,
    "errmsg": "必填参数不能为空",
    "data": null
}

返回参数说明(失败)

参数名 参数类型 描述
errcode number
errmsg string
data object

results matching ""

    No results matching ""