如何使用 Box Rest API 在评论中创建新评论

how to create new comment inside a comment using Box Rest API

如何使用 Box Rest 在评论中创建新评论 API

有字段"is_reply_comment"

但不知道如何设置该字段的值

https://box-content.readme.io/reference#comment-object

要创建新评论以响应现有评论,您可以使用 Create Comments API

POST 的正文将遵循以下格式,其中 COMMENT_ID 将是 existing/parent 评论的 ID:

{"item": {"type": "comment", "id": "COMMENT_ID"}, "message": "YOUR_MESSAGE"}

这是一个使用 cURL 的例子:

curl https://api.box.com/2.0/comments \
-H "Authorization: Bearer ACCESS_TOKEN" \
-d '{"item": {"type": "comment", "id": "COMMENT_ID"}, "message": "YOUR_MESSAGE"}' \
-X POST