v1

latestOpenAPI 3.1.02026-07-26549156879.0 KB
Posts > Comment

Creates a Comment

Creates a Comment

post/api/2026-07-01/resources/posts/comments

Request body

post_idstring required

identifier of the post

textstring required

Text of the comment

Example request

{
  "post_id": "1",
  "text": "How is the week going Ana?"
}

Response

CREATED

idstring required

identifier of the comment

post_idstring required

identifier of the post

author_idstring required

author identifier refers to the employee access, you can get the employee from the employee endpoint

textstring required

text of the comment

created_atstring required

date of the comment

Example response

{
  "id": "1",
  "post_id": "1",
  "author_id": "1",
  "text": "How is the week going Ana?",
  "created_at": "2024-07-17T00:00:00Z"
}