POST api/farmSalePriceMode/add

Request Information

URI Parameters

None.

Body Parameters

Farm_Sales_Price_Mode
NameDescriptionTypeAdditional information
Id

integer

None.

BusinessId

integer

None.

Farm_Business

Farm_Business

None.

CategoryId

integer

None.

Name

string

None.

FeedTypeId

integer

None.

Price

decimal number

Required

MinWeight

decimal number

None.

MaxWeight

decimal number

None.

SalesTypeId

integer

Required

DateCreated

date

None.

DateModified

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "BusinessId": 2,
  "Farm_Business": {
    "Id": 1,
    "Name": "sample string 2",
    "DateCreated": "2025-12-04T23:14:24.2973739+01:00",
    "DateModified": "2025-12-04T23:14:24.2973739+01:00"
  },
  "CategoryId": 3,
  "Name": "sample string 4",
  "FeedTypeId": 5,
  "Price": 6.1,
  "MinWeight": 7.1,
  "MaxWeight": 8.1,
  "SalesTypeId": 9,
  "DateCreated": "2025-12-04T23:14:24.2973739+01:00",
  "DateModified": "2025-12-04T23:14:24.2973739+01:00"
}

application/xml, text/xml

Sample:
<Farm_Sales_Price_Mode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaseLibrary.Entities">
  <BusinessId>2</BusinessId>
  <CategoryId>3</CategoryId>
  <DateCreated>2025-12-04T23:14:24.2973739+01:00</DateCreated>
  <DateModified>2025-12-04T23:14:24.2973739+01:00</DateModified>
  <Farm_Business>
    <DateCreated>2025-12-04T23:14:24.2973739+01:00</DateCreated>
    <DateModified>2025-12-04T23:14:24.2973739+01:00</DateModified>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Farm_Business>
  <FeedTypeId>5</FeedTypeId>
  <Id>1</Id>
  <MaxWeight>8.1</MaxWeight>
  <MinWeight>7.1</MinWeight>
  <Name>sample string 4</Name>
  <Price>6.1</Price>
  <SalesTypeId>9</SalesTypeId>
</Farm_Sales_Price_Mode>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Farm_Sales_Price_Mode'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.