POST api/Product/Create

Request Information

URI Parameters

None.

Body Parameters

Product
NameDescriptionTypeAdditional 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": "7fad0bd5-8400-4017-a84a-d9ad6c775b1e",
  "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": "de8646ca-a183-4b0b-a360-611bc68aa74c",
      "ProductId": "06fd354e-d6a7-401b-a75f-4fd6e6a21afe",
      "PackingSize": "sample string 3",
      "PackingCost": 4.0,
      "UnitPrice": 5,
      "UOMId": 6,
      "UOMIdName": "sample string 7",
      "CreatedBy": "0a647455-1b6c-4899-adf5-d927a5c56e18",
      "CreatedDate": "2025-12-10T21:37:23.5444515-06:00",
      "EditedBy": "f58dc6bf-fd02-4a3a-8efe-bd057e323d9e",
      "EditedDate": "2025-12-10T21:37:23.5444515-06:00",
      "IsActive": true,
      "IsDelete": true
    },
    {
      "response": {
        "Error": "sample string 1",
        "Success": "sample string 2"
      },
      "ProductDetailId": "de8646ca-a183-4b0b-a360-611bc68aa74c",
      "ProductId": "06fd354e-d6a7-401b-a75f-4fd6e6a21afe",
      "PackingSize": "sample string 3",
      "PackingCost": 4.0,
      "UnitPrice": 5,
      "UOMId": 6,
      "UOMIdName": "sample string 7",
      "CreatedBy": "0a647455-1b6c-4899-adf5-d927a5c56e18",
      "CreatedDate": "2025-12-10T21:37:23.5444515-06:00",
      "EditedBy": "f58dc6bf-fd02-4a3a-8efe-bd057e323d9e",
      "EditedDate": "2025-12-10T21:37:23.5444515-06:00",
      "IsActive": true,
      "IsDelete": true
    }
  ],
  "CreatedBy": "02bd0697-56c8-40a7-90c2-99cdb7b841cb",
  "CreatedDate": "2025-12-10T21:37:23.5444515-06:00",
  "EditedBy": "d53dd9da-1362-4a41-b78a-dae44e7a8076",
  "EditedDate": "2025-12-10T21:37:23.5444515-06: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">02bd0697-56c8-40a7-90c2-99cdb7b841cb</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:37:23.5444515-06:00</CreatedDate>
  <EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">d53dd9da-1362-4a41-b78a-dae44e7a8076</EditedBy>
  <EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:37:23.5444515-06: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">0a647455-1b6c-4899-adf5-d927a5c56e18</CreatedBy>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:37:23.5444515-06:00</CreatedDate>
      <EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">f58dc6bf-fd02-4a3a-8efe-bd057e323d9e</EditedBy>
      <EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:37:23.5444515-06: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>de8646ca-a183-4b0b-a360-611bc68aa74c</ProductDetailId>
      <ProductId>06fd354e-d6a7-401b-a75f-4fd6e6a21afe</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">0a647455-1b6c-4899-adf5-d927a5c56e18</CreatedBy>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:37:23.5444515-06:00</CreatedDate>
      <EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">f58dc6bf-fd02-4a3a-8efe-bd057e323d9e</EditedBy>
      <EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:37:23.5444515-06: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>de8646ca-a183-4b0b-a360-611bc68aa74c</ProductDetailId>
      <ProductId>06fd354e-d6a7-401b-a75f-4fd6e6a21afe</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>7fad0bd5-8400-4017-a84a-d9ad6c775b1e</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

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.