GET api/Attachment/GetTicketAttachments?ticketId={ticketId}

Retrieves the list of attachments (for ticket body or reply)

Request Information

Parameters

NameDescriptionAdditional information
ticketId
Id of the ticket

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "correspondence_id": 1,
    "date_created": "2024-04-18T17:16:51.9052376-04:00",
    "file_name": "sample string 3",
    "file_name_on_disk": "sample string 4",
    "file_size": 5,
    "ticket_id": 6,
    "id": 1
  },
  {
    "correspondence_id": 1,
    "date_created": "2024-04-18T17:16:51.9052376-04:00",
    "file_name": "sample string 3",
    "file_name_on_disk": "sample string 4",
    "file_size": 5,
    "ticket_id": 6,
    "id": 1
  },
  {
    "correspondence_id": 1,
    "date_created": "2024-04-18T17:16:51.9052376-04:00",
    "file_name": "sample string 3",
    "file_name_on_disk": "sample string 4",
    "file_size": 5,
    "ticket_id": 6,
    "id": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfattachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Ticketing">
  <attachment>
    <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
    <correspondence_id>1</correspondence_id>
    <date_created>2024-04-18T17:16:51.9052376-04:00</date_created>
    <file_name>sample string 3</file_name>
    <file_name_on_disk>sample string 4</file_name_on_disk>
    <file_size>5</file_size>
    <ticket_id>6</ticket_id>
  </attachment>
  <attachment>
    <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
    <correspondence_id>1</correspondence_id>
    <date_created>2024-04-18T17:16:51.9052376-04:00</date_created>
    <file_name>sample string 3</file_name>
    <file_name_on_disk>sample string 4</file_name_on_disk>
    <file_size>5</file_size>
    <ticket_id>6</ticket_id>
  </attachment>
  <attachment>
    <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
    <correspondence_id>1</correspondence_id>
    <date_created>2024-04-18T17:16:51.9052376-04:00</date_created>
    <file_name>sample string 3</file_name>
    <file_name_on_disk>sample string 4</file_name_on_disk>
    <file_size>5</file_size>
    <ticket_id>6</ticket_id>
  </attachment>
</ArrayOfattachment>