更新时间:2025-03-07 GMT+08:00
        
          
          
        
      
      
      
      
      
      
      
      
  
      
      
      
        
修改任务状态
描述
修改任务状态接口。任务状态当前都是默认非严格状态,可以状态之间任意切换。
接口方法
POST
接口URI
https://域名/service/AICC__Case/1.0.0/openapi/task/status/update,例如域名是service.besclouds.com。
请求说明
| 
        序号  | 
      
        名称  | 
      
        参数类型  | 
      
        是否必选  | 
      
        说明  | 
     
|---|---|---|---|---|
| 
        1  | 
      
        Content-Type  | 
      
        string  | 
      
        True  | 
      
        消息正文的类型为JSON  | 
     
| 
        2  | 
      
        access-token  | 
      
        string  | 
      
        True  | 
      
        用户访问租间token,参见调用鉴权接口  | 
     
| 
        序号  | 
      
        名称  | 
      
        参数类型  | 
      
        长度(字节)  | 
      
        是否必选  | 
      
        说明  | 
     
|---|---|---|---|---|---|
| 
        1  | 
      
        id  | 
      
        string  | 
      
        20  | 
      
        True  | 
      
        任务id  | 
     
| 
        2  | 
      
        creatorId  | 
      
        string  | 
      
        20  | 
      
        True  | 
      
        操作处理人id  | 
     
| 
        3  | 
      
        status  | 
      
        string  | 
      
        128  | 
      
        True  | 
      
        任务状态 dataType : SingleSelect 枚举值: 
  | 
     
响应说明
- 响应状态码: 200
 
消息样例
场景描述:修改任务状态
URL:https://域名/service/AICC__Case/1.0.0/openapi/task/status/update
- 请求头:
 
{
 "Content-Type": "application/json",
 "access-token": "0000000000************7bm63KsRmEztTvyA="
}
  - 请求体:
 
{
    "id": "ccqG0000014iXvGKONQO",
    "status": "Processing",
    "creatorId": "10gg00000148QvgpaLAm"
}
  - 响应头:
 
{ "connection": "keep-alive",
 "Content-Length": "16",
"Content-Type": "application/json%3Bcharset=UTF-8"}
  - 响应参数:
 
{"resCode": "0","resMsg": "成功"}
 
   父主题: 工单任务相关接口(V2.0)