
# 处理任务
#### 场景描述
处理任务接口。
#### 接口方法
POST
#### 接口URL
https://域名/service/AICC__Case/1.0.0/openapi/task/process，例如域名是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  | taskId      | string      | 20     | True | 任务 id                                                                                                                              |
| 2  | creatorId   | string      | 20     | True | 操作处理人                                                                                                                              |
| 3  | processInfo | ProcessInfo | -      | True | 处理信息，该对象的参数说明请参见[表3] |
   
 表3ProcessInfo参数说明 
| 序号 | 名称          | 参数类型   | 长度（字节） | 是否必选  | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|:---|:---|:---|:---|:---|:---|
| 1  | type        | string | -      | True  | 处理类型 取值： - Iternal   |
| 2  | title       | string | 128    | True  | 标题。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| 3  | description | string | 20000  | True  | 处理描述。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| 4  | attachment  | string | 255    | False | 附件大小不能超过5M，数量不超过5个，支持jpg 、png 、pdf 、jpeg 、gif、doc、docx格式                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
   
#### 响应说明
- **响应状态码: 200**
 
#### 消息样例
场景描述：处理任务状态。
URL：https://域名/service/AICC__Case/1.0.0/openapi/task/process
- 请求头:
```
{
 "Content-Type": "application/json",
 "access-token": "0000000000************7bm63KsRmEztTvyA="
}
```
- 请求体：
```
{
    "taskId": "ccqG0000014iXvGKONQO",
    "processInfo": {
        "type": "Iternal",
        "title": "test0707",
        "description": "test0707"
    },
    "creatorId":"10gg00000148QvgpaLAm"
}
```
- 响应头：
```
{ "connection": "keep-alive",
 "Content-Length": "16",
"Content-Type": "application/json%3Bcharset=UTF-8"}
```
- 响应参数：
```
{"resCode": "0","resMsg": "成功"}
```
