Create Reply

all API requests should contain authorization headers.

Request

POST /tickets/{ticketId}/replies

Query Parameters

NameTypeRequiredComments

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": "staffEmailLogin@domain.com",
    },
    "isDraft": false,
    "isHtml": false,
    "isTicketNeededToBeCompleted": false,
    "message": "new reply text",
    "parentReplyId": null,
    "suppressTicketStatusAutoupdate": true
}

Body of request should contain the following model serialized to JSON.

FieldTypeComments

attachments

Reply attachments

author

Reply creator info

isDraft

boolean

If true draft of reply will be created instead.

isHtml

boolean

If true indicates that message content should be processed as HTML with tags, classes and attributes

isTicketNeededToBeCompleted

boolean

If true ticket status will be set to completed after a reply creation

message

string

Reply content

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

suppressTicketStatusAutoupdate

boolean

if true ticket status won't be updated automatically after adding a reply

Response

{
	"data": {
		"attachments": [],
		"author": {
			"id": "0da5a9e8-90ef-403f-873c-e20e4d298558",
			"name": "Staff name",
			"image": "",
			"email": "staffEmailLogin@domain.com",
			"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 updated