Submits a new comment on a published blog post. Only available when comments are enabled for the post.
Authentication
Requires a valid customer bearer token.
Path Parameters
Numeric identifier of the blog post. Returned as Id from GET /api/public/blogPosts.
Request Body
The text body of the comment.
Response
Returns a 200 OK on success.
Examples
POST /api/public/blogPosts/55/comments
Authorization: Bearer {token}
Content-Type: application/json
{
"comment": "Great article, very helpful tips!"
}
TypeScript Integration
import endpoints from '@/api/endpoints'
await httpClient.post(endpoints.blog.newComment(55), {
comment: 'Great article, very helpful tips!',
})