修改任务
描述
修改任务接口。
接口方法
POST
接口URI
https://域名/service/AICC__Case/1.0.0/openapi/task/modify,例如域名是service.besclouds.com。
请求说明
| 
        序号  | 
      
        名称  | 
      
        参数类型  | 
      
        是否必选  | 
      
        说明  | 
     
|---|---|---|---|---|
| 
        1  | 
      
        Content-Type  | 
      
        string  | 
      
        True  | 
      
        消息正文的类型为JSON  | 
     
| 
        2  | 
      
        access-token  | 
      
        string  | 
      
        True  | 
      
        用户访问租间token,参见调用鉴权接口  | 
     
| 
        序号  | 
      
        名称  | 
      
        参数类型  | 
      
        是否必选  | 
      
        说明  | 
     
|---|---|---|---|---|
| 
        1  | 
      
        taskInfo  | 
      
        TaskInfo  | 
      
        False  | 
      
        任务信息,该对象的参数说明请参见表3  | 
     
| 
        序号  | 
      
        名称  | 
      
        参数类型  | 
      
        长度(字节)  | 
      
        是否必选  | 
      
        说明  | 
     
|---|---|---|---|---|---|
| 
        1  | 
      
        id  | 
      
        string  | 
      
        20  | 
      
        True  | 
      
        任务id  | 
     
| 
        2  | 
      
        title  | 
      
        string  | 
      
        128  | 
      
        False  | 
      
        任务标题  | 
     
| 
        3  | 
      
        description  | 
      
        string  | 
      
        20000  | 
      
        False  | 
      
        任务描述  | 
     
| 
        4  | 
      
        type  | 
      
        string  | 
      
        -  | 
      
        False  | 
      
        任务关联类型 取值: 
  | 
     
| 
        5  | 
      
        relateId  | 
      
        string  | 
      
        20  | 
      
        False  | 
      
        关联类型对应id,如果关联任务类型有值,这里也必须有值  | 
     
| 
        6  | 
      
        contactId  | 
      
        string  | 
      
        20  | 
      
        False  | 
      
        联系人id  | 
     
| 
        7  | 
      
        priority  | 
      
        string  | 
      
        128  | 
      
        False  | 
      
        优先级 dataType : SingleSelect 枚举值: 
  | 
     
| 
        8  | 
      
        dueDate  | 
      
        Datetime  | 
      
        -  | 
      
        False  | 
      
        期望完成时间,时间格式为YYYY-MM-DD HH:mm:ss  | 
     
| 
        9  | 
      
        attachment  | 
      
        string  | 
      
        255  | 
      
        False  | 
      
        任务附件  | 
     
| 
        10  | 
      
        creatorId  | 
      
        string  | 
      
        20  | 
      
        False  | 
      
        创建人id  | 
     
响应说明
- 响应状态码: 200
 
无
消息样例
场景描述:修改任务
URL:https://域名/service/AICC__Case/1.0.0/openapi/task/modify
- 请求头:
 
{
 "Content-Type": "application/json",
 "access-token": "0000000000************7bm63KsRmEztTvyA="
}
  - 请求体:
 
{
    "taskInfo":{
        "id":"ccqG0000014iXvGKONQO",
        "title":"show0707",
        "creatorId": "10gg00000148QvgpaLAm"
    }
}
  - 响应头:
 
{ "connection": "keep-alive",
 "Content-Length": "16",
"Content-Type": "application/json%3Bcharset=UTF-8"}
  - 响应参数:
 
{"resCode": "0","resMsg": "成功"}