POST api/Product/Edit
Request Information
URI Parameters
None.
Body Parameters
Product| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductId | globally unique identifier |
None. |
|
| ProductName | string |
Max length: 500 |
|
| Description | string |
Max length: 2000 |
|
| ShelfLife | integer |
None. |
|
| RequiredFat | decimal number |
None. |
|
| MeasurementUnitId | integer |
None. |
|
| MeasurementUnitIdString | string |
None. |
|
| response | Response |
None. |
|
| ProductDetailList | Collection of ProductDetail |
None. |
|
| CreatedBy | globally unique identifier |
None. |
|
| CreatedDate | date |
None. |
|
| EditedBy | globally unique identifier |
None. |
|
| EditedDate | date |
None. |
|
| IsActive | boolean |
None. |
|
| IsDelete | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductId": "7c4b3069-d6b5-454e-bb48-4a9e145de50e",
"ProductName": "sample string 2",
"Description": "sample string 3",
"ShelfLife": 4,
"RequiredFat": 5.0,
"MeasurementUnitId": 6,
"MeasurementUnitIdString": "sample string 7",
"response": {
"Error": "sample string 1",
"Success": "sample string 2"
},
"ProductDetailList": [
{
"response": {
"Error": "sample string 1",
"Success": "sample string 2"
},
"ProductDetailId": "a78107d9-5ad4-4f9e-9f89-4e763e3a7262",
"ProductId": "411d1e01-d6b7-4486-8cd3-cc4e95417d5c",
"PackingSize": "sample string 3",
"PackingCost": 4.0,
"UnitPrice": 5,
"UOMId": 6,
"UOMIdName": "sample string 7",
"CreatedBy": "313db2d2-fddf-45d4-a5dc-cef84870751f",
"CreatedDate": "2026-03-23T11:34:31.6354966-05:00",
"EditedBy": "589febcc-1680-407b-8740-06391912f218",
"EditedDate": "2026-03-23T11:34:31.6354966-05:00",
"IsActive": true,
"IsDelete": true
},
{
"response": {
"Error": "sample string 1",
"Success": "sample string 2"
},
"ProductDetailId": "a78107d9-5ad4-4f9e-9f89-4e763e3a7262",
"ProductId": "411d1e01-d6b7-4486-8cd3-cc4e95417d5c",
"PackingSize": "sample string 3",
"PackingCost": 4.0,
"UnitPrice": 5,
"UOMId": 6,
"UOMIdName": "sample string 7",
"CreatedBy": "313db2d2-fddf-45d4-a5dc-cef84870751f",
"CreatedDate": "2026-03-23T11:34:31.6354966-05:00",
"EditedBy": "589febcc-1680-407b-8740-06391912f218",
"EditedDate": "2026-03-23T11:34:31.6354966-05:00",
"IsActive": true,
"IsDelete": true
}
],
"CreatedBy": "0d6a42c5-9dec-4254-8709-461c2a6f39b7",
"CreatedDate": "2026-03-23T11:34:31.6354966-05:00",
"EditedBy": "2f54956c-b24b-4745-8cf3-58cec8a4d738",
"EditedDate": "2026-03-23T11:34:31.6354966-05:00",
"IsActive": true,
"IsDelete": true
}
application/xml, text/xml
Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core2.Model">
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">0d6a42c5-9dec-4254-8709-461c2a6f39b7</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:34:31.6354966-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2f54956c-b24b-4745-8cf3-58cec8a4d738</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:34:31.6354966-05:00</EditedDate>
<IsActive xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">true</IsActive>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">true</IsDelete>
<Description>sample string 3</Description>
<MeasurementUnitId>6</MeasurementUnitId>
<MeasurementUnitIdString>sample string 7</MeasurementUnitIdString>
<ProductDetailList>
<ProductDetail>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">313db2d2-fddf-45d4-a5dc-cef84870751f</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:34:31.6354966-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">589febcc-1680-407b-8740-06391912f218</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:34:31.6354966-05:00</EditedDate>
<IsActive xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">true</IsActive>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">true</IsDelete>
<PackingCost>4</PackingCost>
<PackingSize>sample string 3</PackingSize>
<ProductDetailId>a78107d9-5ad4-4f9e-9f89-4e763e3a7262</ProductDetailId>
<ProductId>411d1e01-d6b7-4486-8cd3-cc4e95417d5c</ProductId>
<UOMId>6</UOMId>
<UOMIdName>sample string 7</UOMIdName>
<UnitPrice>5</UnitPrice>
<response xmlns:d4p1="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
<d4p1:Error>sample string 1</d4p1:Error>
<d4p1:Success>sample string 2</d4p1:Success>
</response>
</ProductDetail>
<ProductDetail>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">313db2d2-fddf-45d4-a5dc-cef84870751f</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:34:31.6354966-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">589febcc-1680-407b-8740-06391912f218</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:34:31.6354966-05:00</EditedDate>
<IsActive xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">true</IsActive>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">true</IsDelete>
<PackingCost>4</PackingCost>
<PackingSize>sample string 3</PackingSize>
<ProductDetailId>a78107d9-5ad4-4f9e-9f89-4e763e3a7262</ProductDetailId>
<ProductId>411d1e01-d6b7-4486-8cd3-cc4e95417d5c</ProductId>
<UOMId>6</UOMId>
<UOMIdName>sample string 7</UOMIdName>
<UnitPrice>5</UnitPrice>
<response xmlns:d4p1="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
<d4p1:Error>sample string 1</d4p1:Error>
<d4p1:Success>sample string 2</d4p1:Success>
</response>
</ProductDetail>
</ProductDetailList>
<ProductId>7c4b3069-d6b5-454e-bb48-4a9e145de50e</ProductId>
<ProductName>sample string 2</ProductName>
<RequiredFat>5</RequiredFat>
<ShelfLife>4</ShelfLife>
<response xmlns:d2p1="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
<d2p1:Error>sample string 1</d2p1:Error>
<d2p1:Success>sample string 2</d2p1:Success>
</response>
</Product>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.