POST api/Alternate_Domain/Post
Adds a new alternate domain to an existing customer.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
ad | The alternate domain |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "customer_id": 1, "name": "sample string 2", "id": 1 }
application/xml, text/xml
Sample:
<alternate_domain 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> <customer_id>1</customer_id> <name>sample string 2</name> </alternate_domain>
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>