POST api/Contact/Add
Request Information
URI Parameters
None.
Body Parameters
ContactAddDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Phone | string |
None. |
|
| Fax | string |
None. |
|
| string |
None. |
||
| Address | string |
None. |
|
| CustomerID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"phone": "sample string 1",
"fax": "sample string 2",
"email": "sample string 3",
"address": "sample string 4",
"customerID": "bdb16861-28ab-4d73-abd0-2bf2300c6a05"
}
application/xml, text/xml
Sample:
<ContactAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs"> <Address>sample string 4</Address> <CustomerID>bdb16861-28ab-4d73-abd0-2bf2300c6a05</CustomerID> <Email>sample string 3</Email> <Fax>sample string 2</Fax> <Phone>sample string 1</Phone> </ContactAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"Phone":"sample string 1","Fax":"sample string 2","Email":"sample string 3","Address":"sample string 4","CustomerID":"bdb16861-28ab-4d73-abd0-2bf2300c6a05"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.