PUT api/Contact/Update
Request Information
URI Parameters
None.
Body Parameters
ContactModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
Required |
|
| EmailAddress | string |
Required |
|
| Message | string |
Required |
|
| PhoneNumber | string |
None. |
|
| StatusId | integer |
None. |
|
| AnsweredDate | date |
None. |
|
| AnsweredBy | string |
None. |
|
| AnswerMessage | string |
None. |
|
| Id | globally unique identifier |
None. |
|
| Detail | string |
None. |
|
| IsActive | boolean |
None. |
|
| CreatedBy | globally unique identifier |
None. |
|
| CreatedDate | date |
None. |
|
| ModifiedBy | globally unique identifier |
None. |
|
| ModifiedDate | date |
None. |
|
| DeletedBy | globally unique identifier |
None. |
|
| DeletedDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"EmailAddress": "sample string 3",
"Message": "sample string 4",
"PhoneNumber": "sample string 5",
"StatusId": 6,
"AnsweredDate": "2026-10-29T13:23:49.1902698-07:00",
"AnsweredBy": "sample string 7",
"AnswerMessage": "sample string 8",
"Detail": "sample string 10",
"IsActive": true,
"CreatedBy": "5e09c5f1-cfe5-48d4-8a06-64ca65a999ab",
"CreatedDate": "2026-10-29T13:23:49.1902698-07:00",
"ModifiedBy": "0d157857-2de2-4ea0-be2c-01c373168ea4",
"ModifiedDate": "2026-10-29T13:23:49.1902698-07:00",
"DeletedBy": "8fc40669-af90-44e8-9a6f-4c6d16810f60",
"DeletedDate": "2026-10-29T13:23:49.1902698-07:00"
}
application/xml, text/xml
Sample:
<ContactModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Contact"> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">5e09c5f1-cfe5-48d4-8a06-64ca65a999ab</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2026-10-29T13:23:49.1902698-07:00</CreatedDate> <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">8fc40669-af90-44e8-9a6f-4c6d16810f60</DeletedBy> <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2026-10-29T13:23:49.1902698-07:00</DeletedDate> <Detail xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">sample string 10</Detail> <Id xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">625c0c68-47c3-4c68-8c5a-7ca02fafcb98</Id> <IsActive xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">true</IsActive> <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">0d157857-2de2-4ea0-be2c-01c373168ea4</ModifiedBy> <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2026-10-29T13:23:49.1902698-07:00</ModifiedDate> <AnswerMessage>sample string 8</AnswerMessage> <AnsweredBy>sample string 7</AnsweredBy> <AnsweredDate>2026-10-29T13:23:49.1902698-07:00</AnsweredDate> <EmailAddress>sample string 3</EmailAddress> <Id>1</Id> <Message>sample string 4</Message> <Name>sample string 2</Name> <PhoneNumber>sample string 5</PhoneNumber> <StatusId>6</StatusId> </ContactModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |