POST
/api/public/v1/tickets/{ticketId}/commentsAdd a comment to a ticket
Post a new comment on a ticket as the calling employee.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ticketId | string | Required | Ticket ID. |
Request Body
| Property | Type | Description |
|---|---|---|
text | string | Comment text. |
POSTExample request
curl
curl -X POST "https://www.pxb.app/api/public/v1/tickets/{ticketId}/comments" \
-H "X-Organization-Id: your_org_id" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"text": "Picking this up now."
}'200Example response
json
{
"message": "Comment added successfully!",
"content": {
"comment": {
"id": "cmt_1"
}
}
}