Comments
Update comment
Changed onUpdate the message of a comment.
put/comments/{comment_id}
Request
- Base URLhttps://api.box.com/2.0
- URLhttps://api.box.com/2.0/comments/{comment_id}
- AuthOAuth 2Authorization code: https://account.box.com/api/oauth2/authorizeToken URL: https://api.box.com/oauth2/token
Path parameters
comment_idstring required
The ID of the comment.
Query parameters
fieldsstring[]
A comma-separated list of attributes to include in the response. This can be used to request fields that are not normally returned in a standard response.
Be aware that specifying this parameter will have the effect that none of the standard fields are returned in the response unless explicitly specified, instead only fields for the mini representation are returned, additional to the fields requested.
Request body
Example request
{
"message": "Review completed!"
}Response
Returns the updated comment object.
Example response
{
"id": "11446498",
"type": "comment",
"is_reply_comment": true,
"message": "@Aaron Levie these tigers are cool!",
"created_by": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"created_at": "2012-12-12T10:53:43-08:00",
"modified_at": "2012-12-12T10:53:43-08:00",
"item": {
"id": "11446498",
"type": "file"
},
"tagged_message": "@[1234567:Aaron Levie] these tigers are cool!"
}Changes
- warning
added the new
unprocessable_entityenum value to theresponse property for the response status
- warning