POST api/support_ticket/{ticketId}/agent/{agentId}/reply?sendEmail={sendEmail}

Adds a reply to a specified support ticket.

Request Information

Parameters

NameDescriptionAdditional information
ticketId
The Id of the support ticket

Define this parameter in the request URI.

agentId
The Id of the agent creating the reply

Define this parameter in the request URI.

reply
The reply information

Define this parameter in the request body.

sendEmail
Whether to send out a reply email

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "body": "sample string 1",
  "date_created": "2019-03-20T11:01:49.136519-04:00",
  "is_public": true,
  "id": 1
}

application/xml, text/xml

Sample:
<agent_reply_create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Ticketing">
  <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
  <body>sample string 1</body>
  <date_created>2019-03-20T11:01:49.136519-04:00</date_created>
  <is_public>true</is_public>
</agent_reply_create>

Response Information

Response body formats

application/json, text/json

Sample:
{
  "id": 1,
  "errors": [],
  "is_valid": true
}

application/xml, text/xml

Sample:
<create_result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">
  <errors />
  <is_valid>true</is_valid>
  <id>1</id>
</create_result>