更新时间:2024-07-04 GMT+08:00
分享

处理任务

描述

处理任务接口。

接口方法

POST

接口URI

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,参见调用鉴权接口

表2 请求体参数

序号

名称

参数类型

长度(字节)

是否必选

说明

1

taskId

string

20

True

任务 id

2

creatorId

string

20

True

操作处理人

3

processInfo

ProcessInfo

-

True

处理信息,该对象的参数说明请参见表3

表3 ProcessInfo参数说明

序号

名称

参数类型

长度(字节)

是否必选

说明

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": "成功"}

分享:

    相关文档

    相关产品