POST api/Agent
Creates a new agent.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
agent | The agent info |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "role": 1, "username": "sample string 1", "address1": "sample string 2", "alternate_phone_number": "sample string 3", "city": "sample string 4", "country": "sample string 5", "description": "sample string 6", "full_name": "sample string 7", "location": "sample string 8", "phone_number": "sample string 9", "postal_code": "sample string 10", "signature": "sample string 11", "title": "sample string 12", "email_address": "sample string 13", "id": 1 }
application/xml, text/xml
Sample:
<agent_create 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 2</address1> <alternate_phone_number>sample string 3</alternate_phone_number> <city>sample string 4</city> <country>sample string 5</country> <description>sample string 6</description> <email_address>sample string 13</email_address> <full_name>sample string 7</full_name> <location>sample string 8</location> <phone_number>sample string 9</phone_number> <postal_code>sample string 10</postal_code> <signature>sample string 11</signature> <title>sample string 12</title> <role>administrator</role> <username>sample string 1</username> </agent_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>