Comments
Get comment
Changed onRetrieves the message and metadata for a specific comment, as well as information on the user who created the comment.
get/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.
Response
Returns a full 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