归档任务
/v1/tasks/:tid/archive-
URL
https://api.worktile.com/v1/tasks/:tid/archive
-
HTTP请求方式
PUT
-
支持格式
JSON
Header参数
{ "Content-Type":"application/json", "access_token":"xxx" }
示例
curl -X PUT -d 'https://api.worktile.com/v1/tasks/xxx/archive?pid=xxx&access_token=xxx'
-
HTTP请求参数
参数 必选 类型 说明 tid true string 任务tid pid true string 项目pid access_token true string OAuth授权后获得,请求时可放在header中 -
返回数据
示例
HTTP/1.1 200 ok
{ "success":"true" }
返回值字段 类型 说明 success boolean true:操作成功 -
异常结果
示例
HTTP/1.1 500 Server Error
{ "error_code":600028, "error_message":"归档项目中的任务失败", "request":"/v1/tasks/:tid/archive" }
错误码(error_code) 错误信息(error_message) http状态码(statusCode) 100005 没授权,请授权后再操作 401 100006 access_token不正确 400 600005 任务不存在 404 600028 归档项目中的任务失败 500