创建任务组
/v1/entry-
URL
https://api.worktile.com/v1/entry
-
HTTP请求方式
POST
-
支持格式
JSON
Header参数
{ "Content-Type":"application/json", "access_token":"xxx" }
示例
curl -d 'name=待做任务' 'https://api.worktile.com/v1/entry?pid=xxx&access_token=xxx'
-
HTTP请求参数
参数 必选 类型 说明 pid true string 项目pid access_token true string OAuth授权后获得,请求时可放在header中 name true string 任务组名称 -
返回数据
示例
HTTP/1.1 200 ok
{ "entry_id":"b809bef616fd4faa994a84ac61f922a1", "name":"待做任务", "pid":"asfdsfsdae33saf", "created_at":"2014-09-03T04:41:01.436Z", "updated_at":"2014-09-03T04:41:01.436Z" }
返回值字段 类型 说明 entry_id string 任务组id name string 任务组名称 pid string 项目pid created_at string 创建时间 updated_at string 更新时间 -
异常结果
示例
HTTP/1.1 400 Bad Request
{ "error_code":500002, "error_message":"名称不能为空", "request":"/v1/entries" }
错误码(error_code) 错误信息(error_message) http状态码(statusCode) 100005 没授权,请授权后再操作 401 100006 access_token不正确 400 500002 名称不能为空 400 500003 添加任务组失败 500