POST api/Contact

Endpoint to Create A Contact

Request Information

URI Parameters

None.

Body Parameters

PostContactDto
NameDescriptionTypeAdditional 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.

ToDate

integer

None.

FromDate

integer

None.

Group1

integer

None.

Group2

integer

None.

Group3

integer

None.

Group4

integer

None.

Group5

integer

None.

Group6

integer

None.

Group7

integer

None.

Group8

integer

None.

Group9

integer

None.

Group10

integer

None.

Group11

integer

None.

Group12

integer

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",
  "ToDate": 20,
  "FromDate": 21,
  "Group1": 22,
  "Group2": 23,
  "Group3": 24,
  "Group4": 25,
  "Group5": 26,
  "Group6": 27,
  "Group7": 28,
  "Group8": 29,
  "Group9": 30,
  "Group10": 31,
  "Group11": 32,
  "Group12": 33
}

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>
  <FromDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">21</FromDate>
  <Group1 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">22</Group1>
  <Group10 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">31</Group10>
  <Group11 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">32</Group11>
  <Group12 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">33</Group12>
  <Group2 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">23</Group2>
  <Group3 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">24</Group3>
  <Group4 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">25</Group4>
  <Group5 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">26</Group5>
  <Group6 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">27</Group6>
  <Group7 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">28</Group7>
  <Group8 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">29</Group8>
  <Group9 xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">30</Group9>
  <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>
  <ToDate xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Shared">20</ToDate>
  <ContactFor>1</ContactFor>
</PostContactDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PostContactDto'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.