POST api/Individual?customerId={customerId}

Creates a new contact under and existing customer

Request Information

Parameters

NameDescriptionAdditional information
customerId
The Id of the customer

Define this parameter in the request URI.

contact
The contact info

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "notify_by_email": true,
  "address1": "sample string 2",
  "alternate_phone_number": "sample string 3",
  "city": "sample string 4",
  "country": "sample string 5",
  "description": "sample string 6",
  "email_address": "sample string 7",
  "full_name": "sample string 8",
  "location": "sample string 9",
  "phone_number": "sample string 10",
  "postal_code": "sample string 11",
  "title": "sample string 12",
  "brand_id": 13,
  "can_see_all_company_tickets": true,
  "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:
<contact_create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Org">
  <address1>sample string 2</address1>
  <alternate_phone_number>sample string 3</alternate_phone_number>
  <brand_id>13</brand_id>
  <can_see_all_company_tickets>true</can_see_all_company_tickets>
  <city>sample string 4</city>
  <country>sample string 5</country>
  <custom_fields>
    <custom_field>
      <Name>sample string 1</Name>
      <Type>sample string 2</Type>
      <Value>sample string 3</Value>
    </custom_field>
    <custom_field>
      <Name>sample string 1</Name>
      <Type>sample string 2</Type>
      <Value>sample string 3</Value>
    </custom_field>
    <custom_field>
      <Name>sample string 1</Name>
      <Type>sample string 2</Type>
      <Value>sample string 3</Value>
    </custom_field>
  </custom_fields>
  <description>sample string 6</description>
  <email_address>sample string 7</email_address>
  <full_name>sample string 8</full_name>
  <location>sample string 9</location>
  <phone_number>sample string 10</phone_number>
  <postal_code>sample string 11</postal_code>
  <title>sample string 12</title>
  <notify_by_email>true</notify_by_email>
</contact_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>