Create Reply
All API requests should contain authorization headers.

Request

1
POST /tickets/{ticketId}/replies
Copied!

Query Parameters

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

Request Body

1
{
2
"attachments": [{
3
"url": "https://your.attachment.url/filename.png",
4
"name": "filename.png"
5
}
6
],
7
"author": {
8
"email": "[email protected]",
9
},
10
"isDraft": false,
11
"IsMessageHtml": false,
12
"isTicketNeededToBeCompleted": false,
13
"message": "new reply text",
14
"parentReplyId": null
15
}
Copied!
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

1
{
2
"data": {
3
"attachments": [],
4
"author": {
5
"id": "0da5a9e8-90ef-403f-873c-e20e4d298558",
6
"name": "Staff name",
7
"image": "",
8
"email": "[email protected]",
9
"status": "team",
10
"isBot": false
11
},
12
"ccEmails": [],
13
"creationTime": "2020-03-05T17:58:23.0186292+00:00",
14
"htmlMessage": "new reply text",
15
"id": 156372820,
16
"level": 0,
17
"message": "new reply text",
18
"parentReplyId": null,
19
"properties": {
20
"isByTeam": true,
21
"isDraft": false,
22
"isHidden": false
23
},
24
"ticketId": 443484636,
25
"toEmails": []
26
},
27
"errorCode": -1,
28
"errorText": null
29
}
30
Copied!
Data field will contain reply model.
Last modified 1yr ago
Copy link