Idea comments API
Idea comments can appear in ideas portals. To reply to an idea_comment, specify the parent_idea_comment_id. Its visibility will come from its parent idea comment and cannot be overridden.
Create an idea comment visible to idea creator
POST /api/v1/ideas/:idea_id/idea_comments
Name | Description |
---|---|
idea_id * | Numeric ID or key of the idea |
body * | Body of the idea comment - may include html formatting. |
spam | Whether the idea comment is considered spam. Must be 'true' or 'false' |
visibility | Visibility of the idea comment (public or employee_or_creator; public is the default). Not for replies, who get their visibility from their parent idea comment instead. |
parent_idea_comment_id | Numeric ID of the parent idea_comment to reply to. |
Example request
POST /api/v1/ideas/PRJ1-I-1/idea_comments
Example CURL command
curl "https://company.aha.io/api/v1/ideas/PRJ1-I-1/idea_comments" -d '{"idea_comment":{"idea_id":"PRJ1-I-1","body":"\u003cp\u003eThis is the comment body.\u003c/p\u003e","visibility":"employee_or_idea_creator"}}' -X POST \
-H "Authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Request
authorization: Bearer 15b60d42d4bc417284a246ced6877b0bf13fb4aca415f7b55f7006bc3694a8ab
contentType: application/json
accept: application/json
Request body
Response
Status: 200 OK
contentType: application/json; charset=utf-8
Response body