PUT api/Contacts/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
ContactDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| ContactKey | string |
None. |
|
| Forename | string |
None. |
|
| Surname | string |
None. |
|
| AddressLine1 | string |
None. |
|
| AddressLine2 | string |
None. |
|
| AddressLine3 | string |
None. |
|
| AddressLine4 | string |
None. |
|
| Locality | string |
None. |
|
| PostalCode | string |
None. |
|
| CountryCode | string |
None. |
|
| Telephone | string |
None. |
|
| string |
None. |
||
| Visited | boolean |
None. |
|
| VisitedDateTime | date |
None. |
|
| Updated | boolean |
None. |
|
| UpdatedDateTime | date |
None. |
|
| Hostname | string |
None. |
|
| VisitCount | integer |
None. |
|
| ContactProperties | Collection of ContactPropertyDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "c042c83d-715f-4c59-8b8b-755a05ea593b",
"ContactKey": "sample string 2",
"Forename": "sample string 3",
"Surname": "sample string 4",
"AddressLine1": "sample string 5",
"AddressLine2": "sample string 6",
"AddressLine3": "sample string 7",
"AddressLine4": "sample string 8",
"Locality": "sample string 9",
"PostalCode": "sample string 10",
"CountryCode": "sample string 11",
"Telephone": "sample string 12",
"Email": "sample string 13",
"Visited": true,
"VisitedDateTime": "2026-01-07T07:17:28.623086+00:00",
"Updated": true,
"UpdatedDateTime": "2026-01-07T07:17:28.623086+00:00",
"Hostname": "sample string 16",
"VisitCount": 17,
"ContactProperties": [
{
"Id": "166ce180-ae4d-4b6a-89b8-5cf65c2fb5b3",
"Value": "sample string 2",
"ContactPropertyTypeId": "3ad83ffe-035c-41c3-b8bd-301cc6c4b0c2",
"ContactPropertyType": {
"Id": "1a17b420-b30f-421a-bfe0-2b65d9b10636",
"Name": "sample string 2"
}
},
{
"Id": "166ce180-ae4d-4b6a-89b8-5cf65c2fb5b3",
"Value": "sample string 2",
"ContactPropertyTypeId": "3ad83ffe-035c-41c3-b8bd-301cc6c4b0c2",
"ContactPropertyType": {
"Id": "1a17b420-b30f-421a-bfe0-2b65d9b10636",
"Name": "sample string 2"
}
}
]
}
application/xml, text/xml
Sample:
<ContactDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.DataCapture.Models">
<AddressLine1>sample string 5</AddressLine1>
<AddressLine2>sample string 6</AddressLine2>
<AddressLine3>sample string 7</AddressLine3>
<AddressLine4>sample string 8</AddressLine4>
<ContactKey>sample string 2</ContactKey>
<ContactProperties>
<ContactPropertyDto>
<ContactPropertyType>
<Id>1a17b420-b30f-421a-bfe0-2b65d9b10636</Id>
<Name>sample string 2</Name>
</ContactPropertyType>
<ContactPropertyTypeId>3ad83ffe-035c-41c3-b8bd-301cc6c4b0c2</ContactPropertyTypeId>
<Id>166ce180-ae4d-4b6a-89b8-5cf65c2fb5b3</Id>
<Value>sample string 2</Value>
</ContactPropertyDto>
<ContactPropertyDto>
<ContactPropertyType>
<Id>1a17b420-b30f-421a-bfe0-2b65d9b10636</Id>
<Name>sample string 2</Name>
</ContactPropertyType>
<ContactPropertyTypeId>3ad83ffe-035c-41c3-b8bd-301cc6c4b0c2</ContactPropertyTypeId>
<Id>166ce180-ae4d-4b6a-89b8-5cf65c2fb5b3</Id>
<Value>sample string 2</Value>
</ContactPropertyDto>
</ContactProperties>
<CountryCode>sample string 11</CountryCode>
<Email>sample string 13</Email>
<Forename>sample string 3</Forename>
<Hostname>sample string 16</Hostname>
<Id>c042c83d-715f-4c59-8b8b-755a05ea593b</Id>
<Locality>sample string 9</Locality>
<PostalCode>sample string 10</PostalCode>
<Surname>sample string 4</Surname>
<Telephone>sample string 12</Telephone>
<Updated>true</Updated>
<UpdatedDateTime>2026-01-07T07:17:28.623086+00:00</UpdatedDateTime>
<VisitCount>17</VisitCount>
<Visited>true</Visited>
<VisitedDateTime>2026-01-07T07:17:28.623086+00:00</VisitedDateTime>
</ContactDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.