Skip to main content

Add ticket comment

POST{{server}}/api/v1/counter/comment

This endpoint adds a new comment to the ticket. The comments appear in the Monitoring and Statistics modules.

Request

  • ticket (string, required): The key of the called ticket

  • comment (string): the comment text

Response

It returns the stored comment object which contains the comment besides the clerk and time.

Request​

Authorization​

HeaderValue
AuthorizationBearer {{counterToken}}

Headers​

KeyValue
Acceptapplication/json
X-WSID{{counterWsID}}

Body (json)​

{
"ticket": "{{ticketKey}}",
"comment": "The man is very anxious!"
}

Code snippets​

curl -X POST '{{server}}/api/v1/counter/comment' \
-H 'Accept: application/json' \
-H 'X-WSID: {{counterWsID}}' \
-H 'Authorization: Bearer {{counterToken}}' \
-H 'Content-Type: application/json' \
-d '{
"ticket": "{{ticketKey}}",
"comment": "The man is very anxious!"
}'

Example​

Example request
POST{{server}}/api/v1/counter/comment
Headers (2)
KeyValue
Acceptapplication/json
X-WSID{{counterWsID}}
Body
{
"ticket": "{{ticketKey}}",
"comment": "The man is very anxious!"
}
Example response 200 Ok
Response headers (9)
KeyValue
Access-Control-Expose-Headers*
Cache-Controlno-store, no-cache, must-revalidate
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsPOST, PUT, GET, OPTIONS, DELETE
Access-Control-Allow-Credentialstrue
Content-Length107
Access-Control-Max-Age86400
Access-Control-Allow-HeadersContent-Type, Authorization, X-Requested-With
Content-Typeapplication/json;charset=utf-8
Body
[
{
"time": 1719580504203,
"user": "00000000-0000-4000-0002-000000000006",
"comment": "The man is very anxious!"
}
]