POST api/Agent/{id}

Updates an existing agent.

Request Information

Parameters

NameDescriptionAdditional information
id
The Id of the agent to update

Define this parameter in the request URI.

model
The agent info

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "address1": "sample string 1",
  "alternate_phone_number": "sample string 2",
  "city": "sample string 3",
  "country": "sample string 4",
  "description": "sample string 5",
  "full_name": "sample string 6",
  "location": "sample string 7",
  "phone_number": "sample string 8",
  "postal_code": "sample string 9",
  "signature": "sample string 10",
  "title": "sample string 11",
  "email_address": "sample string 12",
  "id": 1
}

application/xml, text/xml

Sample:
<agent_edit 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>
  <address1>sample string 1</address1>
  <alternate_phone_number>sample string 2</alternate_phone_number>
  <city>sample string 3</city>
  <country>sample string 4</country>
  <description>sample string 5</description>
  <email_address>sample string 12</email_address>
  <full_name>sample string 6</full_name>
  <location>sample string 7</location>
  <phone_number>sample string 8</phone_number>
  <postal_code>sample string 9</postal_code>
  <signature>sample string 10</signature>
  <title>sample string 11</title>
</agent_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>