POST api/Contacts
Request Information
URI Parameters
None.
Body Parameters
Collection of ContactModelName | Description | Type | Additional information |
---|---|---|---|
contactName | string |
None. |
|
contactNumber | string |
None. |
Request Formats
application/json, text/json
Sample:
[ { "$id": "1", "contactName": "sample string 1", "contactNumber": "sample string 2" }, { "$ref": "1" } ]
text/html
Sample:
[{"$id":"1","contactName":"sample string 1","contactNumber":"sample string 2"},{"$ref":"1"}]
application/xml, text/xml
Sample:
<ArrayOfContactModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TBG.Models"> <ContactModel> <contactName>sample string 1</contactName> <contactNumber>sample string 2</contactNumber> </ContactModel> <ContactModel> <contactName>sample string 1</contactName> <contactNumber>sample string 2</contactNumber> </ContactModel> </ArrayOfContactModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |