PUT api/Contact?associateNo={associateNo}

Endpoint to update a given Contact

Request Information

URI Parameters

NameDescriptionTypeAdditional information
associateNo

integer

Required

Body Parameters

PutContactDto
NameDescriptionTypeAdditional information
AssociateNo

integer

None.

OrgUnit1No

integer

None.

Information1

string

None.

Name

string

None.

MobilePhone

string

None.

EmailAddress

string

None.

Phone

string

None.

PostCode

string

None.

PostalArea

string

None.

CountryNo

integer

None.

Information2

string

None.

AddressLine1

string

None.

AddressLine2

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AssociateNo": 1,
  "OrgUnit1No": 2,
  "Information1": "sample string 3",
  "Name": "sample string 4",
  "MobilePhone": "sample string 5",
  "EmailAddress": "sample string 6",
  "Phone": "sample string 7",
  "PostCode": "sample string 8",
  "PostalArea": "sample string 9",
  "CountryNo": 10,
  "Information2": "sample string 11",
  "AddressLine1": "sample string 12",
  "AddressLine2": "sample string 13"
}

application/xml, text/xml

Sample:
<PutContactDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VBABPILIB.Dto.Put">
  <AddressLine1>sample string 12</AddressLine1>
  <AddressLine2>sample string 13</AddressLine2>
  <AssociateNo>1</AssociateNo>
  <CountryNo>10</CountryNo>
  <EmailAddress>sample string 6</EmailAddress>
  <Information1>sample string 3</Information1>
  <Information2>sample string 11</Information2>
  <MobilePhone>sample string 5</MobilePhone>
  <Name>sample string 4</Name>
  <OrgUnit1No>2</OrgUnit1No>
  <Phone>sample string 7</Phone>
  <PostCode>sample string 8</PostCode>
  <PostalArea>sample string 9</PostalArea>
</PutContactDto>

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 'PutContactDto'.

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.