Adds a new comment to the specified task

POST /cs-close-api/tasks/{id}/comments

Adds a new comment to the specified task. Comments cannot be blank and must be 4000 characters or less.

Path parameters

  • id integer Required
application/json

Body Required

  • message string Required

    Add new comment message for the task. Comments can not be null.

    Minimum length is 0, maximum length is 4000.

Responses

POST /cs-close-api/tasks/{id}/comments
curl \
 --request POST 'http://close-service:8082/cs-close-api/tasks/{id}/comments' \
 --header "Content-Type: application/json" \
 --data '{"message":"string"}'
Request examples
{
  "message": "string"
}
Response examples (200)
{
  "id": 42,
  "message": "string",
  "commentDate": "2025-05-04T09:42:00Z",
  "userFullName": "string"
}