PUT api/Product/Update
Request Information
URI Parameters
None.
Body Parameters
ProductModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Price | decimal number |
None. |
|
| PriceWithDiscount | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| SKU | string |
None. |
|
| ProductURL | string |
None. |
|
| ImageURL | string |
None. |
|
| ProviderID | globally unique identifier |
None. |
|
| ProviderName | 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:
{
"Name": "sample string 1",
"Price": 2.0,
"PriceWithDiscount": 3.0,
"Discount": 4.0,
"SKU": "sample string 5",
"ProductURL": "sample string 6",
"ImageURL": "sample string 7",
"ProviderID": "f5977b7f-9205-4cdc-b0cc-fe96cc72452f",
"ProviderName": "sample string 9",
"Id": "e17d2296-8db2-4512-9dc3-de3faee16a7c",
"Detail": "sample string 11",
"IsActive": true,
"CreatedBy": "9ca5ba75-c195-4483-82a9-eaacf7601463",
"CreatedDate": "2025-12-10T22:02:50.2087192-08:00",
"ModifiedBy": "8df61358-acec-40d3-84b2-fd9dee8eec84",
"ModifiedDate": "2025-12-10T22:02:50.2087192-08:00",
"DeletedBy": "0af8bdbb-0797-4635-a070-db9f44b3e199",
"DeletedDate": "2025-12-10T22:02:50.2087192-08:00"
}
application/xml, text/xml
Sample:
<ProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Inventory"> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">9ca5ba75-c195-4483-82a9-eaacf7601463</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2025-12-10T22:02:50.2087192-08:00</CreatedDate> <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">0af8bdbb-0797-4635-a070-db9f44b3e199</DeletedBy> <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2025-12-10T22:02:50.2087192-08:00</DeletedDate> <Detail xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">sample string 11</Detail> <Id xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">e17d2296-8db2-4512-9dc3-de3faee16a7c</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">8df61358-acec-40d3-84b2-fd9dee8eec84</ModifiedBy> <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2025-12-10T22:02:50.2087192-08:00</ModifiedDate> <Discount>4</Discount> <ImageURL>sample string 7</ImageURL> <Name>sample string 1</Name> <Price>2</Price> <PriceWithDiscount>3</PriceWithDiscount> <ProductURL>sample string 6</ProductURL> <ProviderID>f5977b7f-9205-4cdc-b0cc-fe96cc72452f</ProviderID> <ProviderName>sample string 9</ProviderName> <SKU>sample string 5</SKU> </ProductModel>
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. |