主题
更新一条评论。
更新时,将update_fields字段中填写所有要修改的评论的字段名,同时在comment字段中填写要修改的字段的新值即可。更新接口规范详情见功能概述中的“ 关于资源的更新”章节。
update_fields
comment
目前只支持更新评论的"conent"字段。
Tip: 更新评论需要评论归属任务的读取权限,并且只能更新自己创建的评论。详情见任务功能概述中的“任务是如何鉴权的?”章节。
task:comment:write
tenant_access_token
user_access_token
access_token
comment_id
string
100
user_id_type
open_id
input_comment
content
10000
string\[\]
{ "comment": { "content": "举杯邀明月,对影成三人" }, "update_fields": [ "content" ] }
code
int
msg
data
\-
id
creator
member
type
role
reply_to_comment_id
created_at
updated_at
resource_type
resource_id
{ "code": 0, "msg": "success", "data": { "comment": { "id": "7197020628442939411", "content": "这是一条评论", "creator": { "id": "ou_2cefb2f014f8d0c6c2d2eb7bafb0e54f", "type": "user", "role": "creator" }, "reply_to_comment_id": "7166825117308174356", "created_at": "1675742789470", "updated_at": "1675742789470", "resource_type": "task", "resource_id": "ccb55625-95d2-2e80-655f-0e40bf67953f" } } }
更新评论
更新一条评论。
更新时,将
update_fields字段中填写所有要修改的评论的字段名,同时在comment字段中填写要修改的字段的新值即可。更新接口规范详情见功能概述中的“ 关于资源的更新”章节。目前只支持更新评论的"conent"字段。
请求
task:comment:write查看、创建、更新、删除任务评论请求头
tenant_access_token或user_access_token值格式:"Beareraccess_token" 示例值:"Bearer u-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token路径参数
comment_idstring示例值:"7198104824246747156"
数据校验规则:
- 最大长度:
100字符查询参数
user_id_typestring示例值:open_id
默认值:
open_id请求体
commentinput_commentcontentstring示例值:"举杯邀明月,对影成三人"
数据校验规则:
- 最大长度:
10000字符update_fieldsstring\[\]-
content: 评论内容示例值:["content"]
请求体示例
响应
响应体
codeintmsgstringdata\-commentcommentidstringcontentstringcreatormemberidstringtypestringrolestringreply_to_comment_idstringcreated_atstringupdated_atstringresource_typestringresource_idstring响应体示例
错误码