Skip to content

Create a comment

Introduction

This endpoint allows you to create a new comment in your organization.

POST https://api.featureos.app/api/v3/comments

Headers

Parameter Default Description
API-KEY-Generate from organization settings on the admin dashboard.
Authorization-Generate a unique JWT token that is specific to a user

Body Parameters

Parameter Required Format Description
commenttrueStringThe comment to be added.
attachments[]falseFileUpload up to 5 images that will be added to the end of the comment. Each image can be either a 'jpeg', 'jpg', 'png' or 'gif' file and a max size of 10 MB.
internalfalseBooleanIf "true" it will be added as a internal comment.
feature_request_idtrueIntegerThe ID of the feature_request in which the comment needs to be added.

Sample response

{
"id": 1,
"comment_html": "<p>Sample Comment 1</p>\n",
"comment": "Sample Comment 1",
"parent_id": null,
"feature_request": {
"id": 168181,
"url": "https://feedback.featureos.app/b/feedback/p/hello-world",
"title": "Comment created via API"
},
"pinned": false,
"internal": false,
"approval_status": "approved",
"created_at": "2023-04-24T09:53:34.000Z",
"updated_at": "2023-04-24T09:53:34.000Z",
"author": {
"id": 1,
"name": "swathy",
"email": "[email protected]",
"profile_picture": {
"url": null
},
"url": "https://feedback.featureos.app/admin/users?userId=1",
"role": "admin"
}
}