POST api/Customer/UpdateCustomer/{id}

Updates an existing customer.

Request Information

Parameters

NameDescriptionAdditional information
id
The customer id

Define this parameter in the request URI.

model
The customer info

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "address1": "sample string 1",
  "address2": "sample string 2",
  "city": "sample string 3",
  "company_name": "sample string 4",
  "country": "sample string 5",
  "date_created": "2024-04-23T04:23:29.4243385-04:00",
  "date_last_updated": "2024-04-23T04:23:29.4243385-04:00",
  "DateTimeFormat": {
    "adjust_for_daylight_savings": true,
    "date_format": {
      "name": "sample string 1",
      "id": 1
    },
    "time_format": {
      "name": "sample string 1",
      "id": 1
    },
    "id": 1
  },
  "is_active": true,
  "location": "sample string 8",
  "notes": "sample string 9",
  "phone_number": "sample string 10",
  "postal_code": "sample string 11",
  "id": 1
}

application/xml, text/xml

Sample:
<customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api.Org">
  <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
  <DateTimeFormat>
    <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
    <adjust_for_daylight_savings>true</adjust_for_daylight_savings>
    <date_format>
      <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
      <name>sample string 1</name>
    </date_format>
    <time_format>
      <id xmlns="http://schemas.datacontract.org/2004/07/Ticket.Api">1</id>
      <name>sample string 1</name>
    </time_format>
  </DateTimeFormat>
  <address1>sample string 1</address1>
  <address2>sample string 2</address2>
  <city>sample string 3</city>
  <company_name>sample string 4</company_name>
  <country>sample string 5</country>
  <date_created>2024-04-23T04:23:29.4243385-04:00</date_created>
  <date_last_updated>2024-04-23T04:23:29.4243385-04:00</date_last_updated>
  <is_active>true</is_active>
  <location>sample string 8</location>
  <notes>sample string 9</notes>
  <phone_number>sample string 10</phone_number>
  <postal_code>sample string 11</postal_code>
</customer>

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>