POST api/Support_Ticket?email_customer={email_customer}&disableNotification={disableNotification}

Creates a new support ticket.

Request Information

Parameters

NameDescriptionAdditional information
model
The support ticket information

Define this parameter in the request body.

email_customer
Whether to send the customer a "new ticket" email

Define this parameter in the request URI.

disableNotification
No documentation available.

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "assigned_to_id": 1,
  "body": "sample string 1",
  "brand_id": 1,
  "date_created": "2019-01-18T19:45:46.2739551-05:00",
  "external_id": "sample string 2",
  "owner_id": 3,
  "owner_username": "sample string 4",
  "priority_id": 5,
  "product_id": 1,
  "source_id": 6,
  "status_id": 7,
  "subject": "sample string 8",
  "tags": [
    "sample string 1",
    "sample string 2",
    "sample string 3"
  ],
  "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"
    }
  ]
}

application/xml, text/xml

Sample:
<support_ticket_create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Ticketing">
  <assigned_to_id>1</assigned_to_id>
  <body>sample string 1</body>
  <brand_id>1</brand_id>
  <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_created>2019-01-18T19:45:46.2739551-05:00</date_created>
  <external_id>sample string 2</external_id>
  <form_id>10</form_id>
  <owner_id>3</owner_id>
  <owner_username>sample string 4</owner_username>
  <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>
  <tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
    <d2p1:string>sample string 3</d2p1:string>
  </tags>
  <ticket_type_id>9</ticket_type_id>
</support_ticket_create>

Response Information

Response body formats

application/json, text/json

Sample:
{
  "row_guid": "sample string 1",
  "sub_id": 2,
  "id": 3,
  "errors": [],
  "is_valid": true
}

application/xml, text/xml

Sample:
<support_ticket_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>3</id>
  <row_guid>sample string 1</row_guid>
  <sub_id>2</sub_id>
</support_ticket_create_result>