Comments
Comments allow users to provide feedback, ask questions, and engage in discussions about specific Ideas. These comments serve as a way for users to collaborate and share thoughts on product features a
Comment object
Comments have the following fields
idx string
A unique identifier for the comment
message string
The raw message content of the comment
content object
Parsed markdown content as Frill type object
is_private boolean
Indicates if the comment is private (note) or public (comment)
type string
Type of comment (comment or note)
created_at string
The date & time the comment was created (UTC timezone)
updated_at string
The date & time the comment was last updated (UTC timezone)
follower object
Author of this comment
idea_id integer
ID of the associated idea
Endpoints
You can use the following endpoints to manage Comments
Returns a list of comments for a specific idea
IDX of the Idea
Limits the number of items on a page (min: 1, max: 100)
20
The after cursor - used for pagination
Returned a list of Comments
Invalid request
Resource not found
GET /v1/comments?idea_idx=text HTTP/1.1
Host: api.frill.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"idx": "comment_abcd1234",
"message": "This is a great idea!",
"content": {},
"is_private": true,
"type": "text",
"created_at": "text",
"updated_at": "text",
"follower": {
"idx": "follower_abcd1234",
"name": "John Smith",
"avatar": "https://example.com/example.jpg"
},
"idea_id": 1
}
],
"pagination": {
"total": 10,
"before": "before-cursor",
"after": "after-cursor"
}
}
Create a new comment for an idea
IDX of the comment author (follower)
Comment message content
IDX of the idea to comment on
Whether the comment should be private (note) or public (comment)
Successfully created a new comment
Invalid request
Resource not found
POST /v1/comments HTTP/1.1
Host: api.frill.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"author_idx": "text",
"message": "text",
"idea_idx": "text",
"is_private": true
}
{
"data": {
"idx": "comment_abcd1234",
"message": "This is a great idea!",
"content": {},
"is_private": true,
"type": "text",
"created_at": "text",
"updated_at": "text",
"follower": {
"idx": "follower_abcd1234",
"name": "John Smith",
"avatar": "https://example.com/example.jpg"
},
"idea_id": 1
}
}
Update an existing comment
IDX of the Comment
Updated comment message content
Successfully updated comment
Invalid request
Resource not found
POST /v1/comments/{commentIdx} HTTP/1.1
Host: api.frill.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"message": "text"
}
{
"data": {
"idx": "comment_abcd1234",
"message": "This is a great idea!",
"content": {},
"is_private": true,
"type": "text",
"created_at": "text",
"updated_at": "text",
"follower": {
"idx": "follower_abcd1234",
"name": "John Smith",
"avatar": "https://example.com/example.jpg"
},
"idea_id": 1
}
}
Delete an existing comment
IDX of the Comment
Request was successful
Invalid request
Resource not found
DELETE /v1/comments/{commentIdx} HTTP/1.1
Host: api.frill.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"message": "Request was successful"
}
Last updated