POST api/Product/Create
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": "0ba6aaf0-2c35-46e1-a6f1-baa42e64e9b1",
"ProviderName": "sample string 9",
"Id": "86856dec-53fc-45bc-8d4d-cb9e7cf69539",
"Detail": "sample string 11",
"IsActive": true,
"CreatedBy": "c1ae1b1e-1921-4aab-8eaf-7b7e13ad8874",
"CreatedDate": "2026-10-29T13:23:49.4402786-07:00",
"ModifiedBy": "705340c1-14b0-47fa-9ad4-ddb1aa13525f",
"ModifiedDate": "2026-10-29T13:23:49.4402786-07:00",
"DeletedBy": "0fc0a424-ee1d-468a-bf38-83547bd81ac7",
"DeletedDate": "2026-10-29T13:23:49.4402786-07: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">c1ae1b1e-1921-4aab-8eaf-7b7e13ad8874</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2026-10-29T13:23:49.4402786-07:00</CreatedDate> <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">0fc0a424-ee1d-468a-bf38-83547bd81ac7</DeletedBy> <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2026-10-29T13:23:49.4402786-07: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">86856dec-53fc-45bc-8d4d-cb9e7cf69539</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">705340c1-14b0-47fa-9ad4-ddb1aa13525f</ModifiedBy> <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/LifeHub.Ubico.Common.Models.Base">2026-10-29T13:23:49.4402786-07: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>0ba6aaf0-2c35-46e1-a6f1-baa42e64e9b1</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. |