POST api/Support_Ticket/{id}

Updates an existing support ticket.

Request Information

Parameters

NameDescriptionAdditional information
id
The Id of the support ticket.

Define this parameter in the request URI.

model
The support ticket information

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "assigned_to": 1,
  "body": "sample string 1",
  "date_resolved": "2019-01-18T19:43:37.1527855-05:00",
  "external_id": "sample string 2",
  "is_resolved": true,
  "owner_id": 4,
  "priority_id": 5,
  "product_id": 1,
  "source_id": 6,
  "status_id": 7,
  "subject": "sample string 8",
  "ticket_type_id": 9,
  "form_id": 10,
  "custom_fields": [
    {
      "Name": "sample string 1",
      "Type": "sample string 2",
      "Value": "sample string 3"
    },
    {
      "Name": "sample string 1",
      "Type": "sample string 2",
      "Value": "sample string 3"
    },
    {
      "Name": "sample string 1",
      "Type": "sample string 2",
      "Value": "sample string 3"
    }
  ],
  "id": 1
}

application/xml, text/xml

Sample:
<support_ticket_edit 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>
  <assigned_to>1</assigned_to>
  <body>sample string 1</body>
  <custom_fields xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ticket.Api.Org">
    <d2p1:custom_field>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Type>sample string 2</d2p1:Type>
      <d2p1:Value>sample string 3</d2p1:Value>
    </d2p1:custom_field>
    <d2p1:custom_field>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Type>sample string 2</d2p1:Type>
      <d2p1:Value>sample string 3</d2p1:Value>
    </d2p1:custom_field>
    <d2p1:custom_field>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Type>sample string 2</d2p1:Type>
      <d2p1:Value>sample string 3</d2p1:Value>
    </d2p1:custom_field>
  </custom_fields>
  <date_resolved>2019-01-18T19:43:37.1527855-05:00</date_resolved>
  <external_id>sample string 2</external_id>
  <form_id>10</form_id>
  <is_resolved>true</is_resolved>
  <owner_id>4</owner_id>
  <priority_id>5</priority_id>
  <product_id>1</product_id>
  <source_id>6</source_id>
  <status_id>7</status_id>
  <subject>sample string 8</subject>
  <ticket_type_id>9</ticket_type_id>
</support_ticket_edit>

Response Information

Response body formats

application/json, text/json

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

application/xml, text/xml

Sample:
<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>
</result>