PUT api/Contacts
Updates a contact
Request Information
URI Parameters
None.
Body Parameters
UpdateContactRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactId | globally unique identifier |
Required |
|
| RevokeConsent |
Revokes consent. Any value assigned to ConsentDate will be ignored and set to null. |
boolean |
Required |
| MarkedForRemoval |
Gets the date of removal. If this date is set the contact has been asked to be removed. |
date |
None. |
| BranchId | integer |
None. |
|
| Name | string |
Required Max length: 128 |
|
| Address1 | string |
Max length: 100 |
|
| Address2 | string |
Max length: 100 |
|
| Address3 | string |
Max length: 100 |
|
| PostalCode | string |
Max length: 10 |
|
| Town | string |
Max length: 50 |
|
| CountryId | string |
Required Max length: 2 |
|
| string |
Max length: 50 |
||
| Phone | string |
Max length: 50 |
|
| Mobile | string |
Max length: 50 |
|
| BusinessPosition | string |
Max length: 50 |
|
| Note | string |
None. |
|
| PreferredCultureId | string |
Max length: 5 |
|
| Identification | integer |
None. |
|
| IsDefault | boolean |
Required |
|
| UseCustomerAddress | boolean |
Required |
|
| CustomerNo | integer |
None. |
|
| GDPRConsentDate |
Gets the date when the customer has given consent for data storage and processing. |
date |
None. |
Remarks
None.
Example
None.
Request Formats
application/json, text/json
Sample:
{
"ContactId": "546a6c6b-44e4-4e23-abf8-d83102c9af1c",
"RevokeConsent": true,
"MarkedForRemoval": "12/21/2025 1:01:55 PM",
"BranchId": 1,
"Name": "sample string 3",
"Address1": "sample string 4",
"Address2": "sample string 5",
"Address3": "sample string 6",
"PostalCode": "sample string 7",
"Town": "sample string 8",
"CountryId": "sample string 9",
"Email": "sample string 10",
"Phone": "sample string 11",
"Mobile": "sample string 12",
"BusinessPosition": "sample string 13",
"Note": "sample string 14",
"PreferredCultureId": "sample string 15",
"Identification": 1,
"IsDefault": true,
"UseCustomerAddress": true,
"CustomerNo": 1,
"GDPRConsentDate": "12/21/2025 1:01:55 PM"
}
application/xml, text/xml
Sample:
<UpdateContactRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business"> <Address1>sample string 4</Address1> <Address2>sample string 5</Address2> <Address3>sample string 6</Address3> <BranchId>1</BranchId> <BusinessPosition>sample string 13</BusinessPosition> <CountryId>sample string 9</CountryId> <CustomerNo>1</CustomerNo> <Email>sample string 10</Email> <GDPRConsentDate>2025-12-21T13:01:55.4754047+00:00</GDPRConsentDate> <Identification>1</Identification> <IsDefault>true</IsDefault> <Mobile>sample string 12</Mobile> <Name>sample string 3</Name> <Note>sample string 14</Note> <Phone>sample string 11</Phone> <PostalCode>sample string 7</PostalCode> <PreferredCultureId>sample string 15</PreferredCultureId> <Town>sample string 8</Town> <UseCustomerAddress>true</UseCustomerAddress> <ContactId>546a6c6b-44e4-4e23-abf8-d83102c9af1c</ContactId> <MarkedForRemoval>2025-12-21T13:01:55.4754047+00:00</MarkedForRemoval> <RevokeConsent>true</RevokeConsent> </UpdateContactRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Ok if all is well
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.