Create Post Comment
POST {{baseUrl}}/api/v2/community/posts/:post_id/comments
Adds a comment to the specified post.
Allowed for
- End users
Agents with the Help Center manager role can optionally supply an
author_id
as part of the comment
object. If it is provided, the
comment's author will be set to the value of the author_id
key.
Supplying a notify_subscribers
property with a value of false
will prevent subscribers to the comment's post from receiving a comment
creation email notification. This can be helpful when creating many
comments at a time. Specify the property in the root of the JSON object, not in the comment
object.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: Created
{"comment":{"body":"\u003cstring\u003e","author_id":"\u003cinteger\u003e","created_at":"\u003cstring\u003e","html_url":"\u003cstring\u003e","id":"\u003cinteger\u003e","non_author_editor_id":"\u003cinteger\u003e","non_author_updated_at":"\u003cdateTime\u003e","official":"\u003cboolean\u003e","post_id":"\u003cinteger\u003e","updated_at":"\u003cstring\u003e","url":"\u003cstring\u003e","vote_count":"\u003cinteger\u003e","vote_sum":"\u003cinteger\u003e"}}