Retrieve a User Comment

GET

GET User Comment

GET /users/{userId}/comments/{commentId} endpoint returns a comment for a user.

Path parameters

userIdstringRequired
Unique User Identifier
commentIdstringRequired
Unique Comment Identifier

Response

This endpoint returns an object
commentId
string
Unique comment ID
body
string
Comment body
files
list of objectsOptional
createdTimestamp
doubleOptional
Timestamp when comment is created
updatedTimestamp
doubleOptional
Timestamp when comment is updated

Errors

GET
1curl https://sandbox.api.flagright.com/management/users/userId/comments/commentId \
2 -H "x-api-key: <apiKey>"
1{
2 "commentId": "96647cfd9e8fe66ee0f3362e011e34e8",
3 "body": "This is a comment",
4 "files": [
5 {
6 "filename": "file.txt",
7 "size": 1024,
8 "downloadLink": "s3://bucket/key"
9 }
10 ],
11 "createdTimestamp": 1641654664000,
12 "updatedTimestamp": 1.1
13}