PUT api/Product/Update
Request Information
URI Parameters
None.
Body Parameters
ProductModelName | 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": "8defc35b-d085-4bb2-99e2-f7d5cd7c4ca7", "ProviderName": "sample string 9", "Id": "30431564-147d-44ad-8530-557c4a272aea", "Detail": "sample string 11", "IsActive": true, "CreatedBy": "483dc002-873e-450d-b279-7dc1407a5d57", "CreatedDate": "2024-12-29T10:32:38.3347726-08:00", "ModifiedBy": "435c8a31-9dec-46b5-84f7-d3a59ca5a230", "ModifiedDate": "2024-12-29T10:32:38.3347726-08:00", "DeletedBy": "a17fdc3a-a177-4c37-b1c3-44e9ab7b3c6a", "DeletedDate": "2024-12-29T10:32:38.3347726-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">483dc002-873e-450d-b279-7dc1407a5d57</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:38.3347726-08:00</CreatedDate> <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">a17fdc3a-a177-4c37-b1c3-44e9ab7b3c6a</DeletedBy> <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:38.3347726-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">30431564-147d-44ad-8530-557c4a272aea</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">435c8a31-9dec-46b5-84f7-d3a59ca5a230</ModifiedBy> <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2024-12-29T10:32:38.3347726-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>8defc35b-d085-4bb2-99e2-f7d5cd7c4ca7</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
HttpResponseMessageName | 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. |