Create Reply
All API requests should contain authorization headers.

Request

POST /tickets/{ticketId}/replies

Query Parameters

Name
Type
Required
Comments
ticketId
integer
yes
Id of ticket you want to create reply in.

Request Body

{
"attachments": [{
"url": "https://your.attachment.url/filename.png",
"name": "filename.png"
}
],
"author": {
"email": "[email protected]",
},
"isDraft": false,
"IsMessageHtml": false,
"isTicketNeededToBeCompleted": false,
"message": "new reply text",
"parentReplyId": null
}
Body of request should contain the following model serialized to JSON.
Field
Type
Comments
attachments
array of Base Attachment models
Reply attachments
author
Reply creator info.
isDraft
boolean
If true draft of reply will be created instead.
isMessageHtml
boolean
If true message contains HTML tags. If false
isTicketNeededToBeCompleted
boolean
If true ticket status will be set to completed after reply creation
message
string
Contains
parentReplyId
nullable integer
If null reply of the 1st level will be created. Should contain reply Id of parent if subreply needs to be created.

Response

{
"data": {
"attachments": [],
"author": {
"id": "0da5a9e8-90ef-403f-873c-e20e4d298558",
"name": "Staff name",
"image": "",
"email": "[email protected]",
"status": "team",
"isBot": false
},
"ccEmails": [],
"creationTime": "2020-03-05T17:58:23.0186292+00:00",
"htmlMessage": "new reply text",
"id": 156372820,
"level": 0,
"message": "new reply text",
"parentReplyId": null,
"properties": {
"isByTeam": true,
"isDraft": false,
"isHidden": false
},
"ticketId": 443484636,
"toEmails": []
},
"errorCode": -1,
"errorText": null
}
Data field will contain reply model.
Copy link
Outline