Create Comment on Ticket
Adds a comment to an existing ticket.
Authentication: X-API-KEY header (see Authentication).
Request body
| Field | Type | Description |
|---|---|---|
| ticketNumber | long | Number of the ticket to comment on. |
| userEmail | string | Email of the commenting user. |
| privateComment | boolean | If true, comment is internal-only. |
| comment | string | Comment body. |
Request
curl -X POST https://api.withmoxie.com/public/action/tickets/comments/create \
-H "X-API-KEY: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"ticketNumber": 1042, "userEmail": "jane@acme.example", "comment": "Following up."}'
Response
Returns the updated TicketWrapper (ticket plus all comments).
{
"ticket": {
"id": "66b0f6e5c3a9e40012ab7100",
"accountId": 10016,
"ticketNumber": 1042,
"subject": "Cannot log in",
"status": "Open"
},
"comments": [
{ "comment": "Portal returns an error.", "privateComment": false },
{ "comment": "Following up.", "privateComment": false }
]
}