When you post an idea on an idea board, community members add suggestions or comments on the idea. To comment on an idea, use the createIdeaComment GraphQL API call.
Requirements
You must have the Comment on Ideas permission set to Grant by the Administrator.
Example
This example shows how to comment on your idea.
In the mutation, you set the parent ID where you want to post the comment, set the subject, and the body of your comment.
mutation {
createIdeaComment(createInput: {
parentId: "message:485",
subject:"Update on the product feature",
body:"This product feature can be also be used in several third-party applications."
}) {
result {
id
subject
body
}
}
}
The response generated a unique ID for your comment. The response for the createIdeaComment mutation looks like this.
{
"data": {
"createIdeaComment": {
"result": {
"id": "message:1381",
"subject":"Update on the product feature",
"body": "This product feature can be also be used in several third-party applications."
}
}
}
}
ATLAS
Comments