Comment on page
Create Reply
POST /tickets/{ticketId}/replies
Name | Type | Required | Comments |
ticketId | integer | yes | Id of ticket you want to create reply in. |
{
"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
}
Field | Type | Comments |
attachments | 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. |
{
"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.Last modified 3mo ago