取消关注话题
/v1/posts/:post_id/watchers/:uid-
URL
https://api.worktile.com/v1/posts/:post_id/watchers/:uid
-
HTTP请求方式
DELETE
-
支持格式
JSON
Header参数
{ "Content-Type":"application/json", "access_token":"xxx" }
示例
curl -I -X DELETE https://api.worktile.com/v1/posts/adsa7sa6/watchers/xxxx?pid=xxx&access_token=xxx
-
HTTP请求参数
参数 必选 类型 说明 post_id true string 话题id uid true string 项目成员uid pid true string 项目pid access_token true string OAuth授权后获得,请求时可放在header中 -
返回数据
示例
HTTP/1.1 200 ok
{ "success":"true" }
返回值字段 类型 说明 success boolean true: 取消关注成功 -
异常结果
示例
HTTP/1.1 404 Not Found
{ "error_code":200010, "error_message":"成员不在项目中", "request":"/v1/posts/:post_id/watchers/:uid" }
错误码(error_code) 错误信息(error_message) http状态码(statusCode) 100005 没授权,请授权后再操作 401 100006 access_token不正确 400 900005 话题不存在 404 200010 成员不在项目中 404 200005 取消关注失败 500