Retrieve User Comments

GET

GET User Comments

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

Path parameters

userIdstringRequired
Unique User Identifier

Response

This endpoint returns a list of objects
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 \
2 -H "x-api-key: <apiKey>"
1[
2 {
3 "commentId": "96647cfd9e8fe66ee0f3362e011e34e8",
4 "body": "This is a comment",
5 "files": [
6 {
7 "filename": "filename",
8 "size": 1.1,
9 "downloadLink": "downloadLink"
10 }
11 ],
12 "createdTimestamp": 1641654664000,
13 "updatedTimestamp": 1.1
14 }
15]