
# 关闭工单
#### 场景描述
关闭工单接口，工单走到最后一步状态时，当前处理人或者有关闭工单权限的管理员可以选择关闭工单。
#### 接口方法
POST
#### 接口URL
https://域名/service/AICC__Case/1.0.0/openapi/close，例如域名是service.besclouds.com。
#### 请求说明
表1请求头参数 
| 序号 | 名称           | 参数类型   | 是否必选 | 说明                                                                                                                                                                                            |
|:---|:---|:---|:---|:---|
| 1  | Content-Type | string | True | 消息正文的类型为JSON                                                                                                                                                                                  |
| 2  | access-token | string | True | 用户访问租间token，参见[调用鉴权接口](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0260.html#ZH-CN_TOPIC_0000002481273558__zh-cn_topic_0000002509989463_zh-cn_topic_0000001629993164_li1537163311381) |
   
表2请求体参数 
| 序号 | 名称           | 参数类型   | 长度（字节） | 是否必选 | 说明      |
|:---|:---|:---|:---|:---|:---|
| 1  | caseId       | string | 20     | True | 工单id    |
| 2  | creatorId    | string | 20     | True | 操作处理人id |
| 3  | remark       | string | 2000   | True | 描述信息    |
| 4  | closedReason | string | 20     | True | 关单原因ID  |
   
#### 响应说明
- **响应状态码: 200**
 
#### 消息样例
场景描述：关闭工单
URL：https://域名/service/AICC__Case/1.0.0/openapi/close
- 请求头:
```
{
 "Content-Type": "application/json",
 "access-token": "0000000000************7bm63KsRmEztTvyA="
}
```
- 请求体：
```
{ "caseId":"c6m80000013ka3K1K556","creatorId":"10gg000000sLj1ytR70C","remark": "10330013wbIvo30bk","closedReason": "cLkm000001MtaSzM4Tzc"}
```
- 响应头：
```
{ "connection": "keep-alive",
 "Content-Length": "16",
"Content-Type": "application/json%3Bcharset=UTF-8"}
```
- 响应参数：
```
{"resCode": "0","resMsg": "成功"}
```
