POST api/Contact
Endpoint to Create A Contact
Request Information
URI Parameters
None.
Body Parameters
PostContactDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactFor | integer |
None. |
|
| OrgUnit1No | integer |
None. |
|
| Information1 | string |
None. |
|
| Information2 | string |
None. |
|
| Information3 | string |
None. |
|
| Information4 | string |
None. |
|
| Information5 | string |
None. |
|
| Information6 | string |
None. |
|
| Information7 | string |
None. |
|
| Information8 | string |
None. |
|
| Name | string |
None. |
|
| MobilePhone | string |
None. |
|
| EmailAddress | string |
None. |
|
| Phone | string |
None. |
|
| PostCode | string |
None. |
|
| PostalArea | string |
None. |
|
| CountryNo | integer |
None. |
|
| AddressLine1 | string |
None. |
|
| AddressLine2 | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ContactFor": 1,
"OrgUnit1No": 2,
"Information1": "sample string 3",
"Information2": "sample string 4",
"Information3": "sample string 5",
"Information4": "sample string 6",
"Information5": "sample string 7",
"Information6": "sample string 8",
"Information7": "sample string 9",
"Information8": "sample string 10",
"Name": "sample string 11",
"MobilePhone": "sample string 12",
"EmailAddress": "sample string 13",
"Phone": "sample string 14",
"PostCode": "sample string 15",
"PostalArea": "sample string 16",
"CountryNo": 17,
"AddressLine1": "sample string 18",
"AddressLine2": "sample string 19"
}
application/xml, text/xml
Sample:
<PostContactDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Post"> <AddressLine1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 18</AddressLine1> <AddressLine2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 19</AddressLine2> <CountryNo xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">17</CountryNo> <EmailAddress xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 13</EmailAddress> <Information1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 3</Information1> <Information2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 4</Information2> <Information3 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 5</Information3> <Information4 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 6</Information4> <Information5 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 7</Information5> <Information6 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 8</Information6> <Information7 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 9</Information7> <Information8 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 10</Information8> <MobilePhone xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 12</MobilePhone> <Name xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 11</Name> <OrgUnit1No xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">2</OrgUnit1No> <Phone xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 14</Phone> <PostCode xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 15</PostCode> <PostalArea xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">sample string 16</PostalArea> <ContactFor>1</ContactFor> </PostContactDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | 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. |