
# 批量添加排班结果（API名称：batchAddScheduleResult）
#### 功能介绍
该接口用于批量添加排班结果信息。
#### URL
| **请求方式** | **HTTPS地址**                                                                                   | **消息体类型**        |
|:---|:---|:---|
| POST     | https://***AppCube域名***/service/ISDP__IntelligentSchedulingModel/1.0.1/batchAddScheduleResult | application/json |
   
#### 请求头
| **参数**       | **类型** | **是否必填** | **描述**                                                                                                            |
|:---|:---|:---|:---|
| Content-Type | String | 是        | 请求体内容类型 填写为：application/json                          |
| access-token | String | 是        | 调用API要用到的访问令牌，[获取access_token](https://support.huaweicloud.com/devg-isdp-Intel/devg_00015.html)中获取的access_token的值 |
   
#### 请求参数
| **参数**             | **类型**         | **是否必填** | **描述**                  |
|:---|:---|:---|:---|
| startDate          | String         | 是        | 排班结果的开始日期，格式：yyyy-MM-dd |
| endDate            | String         | 是        | 排班结果的结束日期，格式：yyyy-MM-dd |
| shceduleResultList | ScheduleResult | 是        | 排班结果列表                  |
   
shceduleResultList参数说明
| **参数**       | **类型** | **是否必填** | **描述**             |
|:---|:---|:---|:---|
| scheduleType | String | 是        | 排班类型               |
| date         | String | 是        | 排班日期，格式：yyyy-MM-dd |
| personCode   | String | 是        | 人员账号               |
| personName   | String | 是        | 人员名称               |
| shiftId      | String | 是        | 班次id               |
| shiftName    | String | 是        | 班次名称               |
   
#### 响应参数
| **参数**  | **类型** | **描述**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
|:---|:---|:---|
| resCode | String | 响应状态码 - 0：成功  - 其他：失败，其他错误码说明请参考[错误码](https://support.huaweicloud.com/devg-isdp-Intel/zh-cn_topic_0000001531381381.html)   |
| resMsg  | String | 响应描述，如果成功状态，通常会返回"成功"，其他情况返回具体的错误信息                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
   
#### 请求示例
```
{
    "startDate":"2023-03-01",
    "endDate":"2023-03-31",
    "shceduleResultList":[
        {
            "scheduleType":"0",
            "date":"2023-03-09",
            "personCode":"123456",
            "personName":"张三91",
            "shiftId":"c03P0000011GOUwzmM5W",
            "shiftName":"白班"
        },
        {
            "scheduleType":"0",
            "date":"2023-03-10",
            "personCode":"123456",
            "personName":"张四101",
            "shiftId":"c03P0000011GOUwzmM4W",
            "shiftName":"白班"
        }        
    ]
}
```
#### 响应示例
```
{
    "resCode": "0",
    "resMsg": "成功"
}
```
#### 状态码
状态码请参见[状态码](https://support.huaweicloud.com/devg-isdp-Intel/devg_00022.html)。
#### 错误码
错误码请参见[错误码](https://support.huaweicloud.com/devg-isdp-Intel/devg_00023.html)。
