Posts > Comment

Updates a Comment

Changed on

Updates a Comment

put/api/2026-10-01/resources/posts/comments/{id}

Request

  • Base URL
    https://api.factorialhr.com
  • URL
    https://api.factorialhr.com/api/2026-10-01/resources/posts/comments/{id}
  • Auth
    • OAuth 2
      Authorization code: https://id.factorialhr.com/oauth/authorize
      Token URL: https://id.factorialhr.com/api/oauth/token scopes: posts
    • or API key in header x-api-key

Path parameters

idstring required

identifier of the comment

Request body

idstring required

identifier of the comment

post_idstring required

identifier of the post

textstring required

Text of the comment

Example request

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

Response

OK

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"
}

Changes