cURL
curl --request POST \ --url https://api.campsite.com/v2/posts/{post_id}/comments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "content_markdown": "<string>", "parent_id": "<string>" }'
{ "id": "<string>", "content": "<string>", "created_at": "<string>", "replies_count": 123, "parent_id": "<string>", "subject_id": "<string>", "subject_type": "<string>", "author": { "avatar_urls": { "xs": "<string>", "sm": "<string>", "base": "<string>", "lg": "<string>", "xl": "<string>", "xxl": "<string>" }, "name": "<string>", "id": "<string>", "type": "app" } }
Creates a new comment on a post.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The response is of type object.
object