Skip to content

取消已办接口

基本信息

中文名: 取消待办任务

接口名: /tc/openapi/task/cancel.json

所在目录: 待办

调用方式: GET(HTTPS)

备注: 将个人已办撤回到待办中,将待办任务从已办状态改为待办状态 。

最低可用版本V1.3.0

请求参数

名称类型是否必填示例值描述
cancelPakcageBoolean是否同步取消实例,默认false
userIdString用户ID
taskUuidString任务唯一ID,由创建待办接口返回

返回参数

参数名类型备注
successboolean网关请求是否成功
contentObject待办请求内容
└dataBoolean操作是否成功
└successboolean待办请求是否成功
└responseCodeString请求code
└responseMessageString请求msg

调用示例

java
Map<String, String> parameter = new HashMap<>();
parameter.put("cancelPakcage", "true or false");
parameter.put("userId", "xxx");
parameter.put("taskUuid", "xxx");

//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
.api("/tc/openapi/task/cancel.json")
.region("INTER")
.accessKey("xxx")
.secretKey("xxx")
.queryParamsMap(parameter)
.requestUrl("https://api-one.digitalhainan.com.cn/apione")
.mediaType(MediaType.parse("application/json"))
.method("GET")
.build();

HttpReturn call = HttpCaller.getInstance().call(parameters);
log.info("响应:" + call.response);