POST api/BoardingDayLabs

Request Information

URI Parameters

None.

Body Parameters

BoardingDayLabViewModel
NameDescriptionTypeAdditional information
LotName

string

None.

LotExpiry

date

None.

BoardingDayLabId

integer

None.

BoardingDayId

integer

None.

Description

string

None.

MeasureUnit

string

None.

MarkupPerc

decimal number

None.

PriceExclVat

decimal number

None.

Vat

decimal number

None.

PriceInclVat

decimal number

None.

MeasureAmount

decimal number

None.

Cost

decimal number

None.

Comment

string

None.

Count

integer

None.

Result

string

None.

InvoiceDescription

string

None.

AddedBy

string

None.

PracticeId

integer

None.

StockLedgerId

integer

None.

Warning

string

None.

CategoryDescription

string

None.

SubCategoryDescription

string

None.

Request Formats

application/json, text/json

Sample:
{
  "LotName": "sample string 1",
  "LotExpiry": "2024-12-21T05:35:41.584863+00:00",
  "BoardingDayLabId": 2,
  "BoardingDayId": 1,
  "Description": "sample string 3",
  "MeasureUnit": "sample string 4",
  "MarkupPerc": 1.1,
  "PriceExclVat": 1.0,
  "Vat": 1.0,
  "PriceInclVat": 1.0,
  "MeasureAmount": 1.1,
  "Cost": 1.0,
  "Comment": "sample string 5",
  "Count": 1,
  "Result": "sample string 6",
  "InvoiceDescription": "sample string 7",
  "AddedBy": "sample string 8",
  "PracticeId": 9,
  "StockLedgerId": 1,
  "Warning": "sample string 10",
  "CategoryDescription": "sample string 11",
  "SubCategoryDescription": "sample string 12"
}

text/html

Sample:
{"LotName":"sample string 1","LotExpiry":"2024-12-21T05:35:41.584863+00:00","BoardingDayLabId":2,"BoardingDayId":1,"Description":"sample string 3","MeasureUnit":"sample string 4","MarkupPerc":1.1,"PriceExclVat":1.0,"Vat":1.0,"PriceInclVat":1.0,"MeasureAmount":1.1,"Cost":1.0,"Comment":"sample string 5","Count":1,"Result":"sample string 6","InvoiceDescription":"sample string 7","AddedBy":"sample string 8","PracticeId":9,"StockLedgerId":1,"Warning":"sample string 10","CategoryDescription":"sample string 11","SubCategoryDescription":"sample string 12"}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[VetAPI.DataModel.BoardingDayLab, VetAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[VetAPI.DataModel.BoardingDayLab, VetAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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 'BoardingDayLabViewModel'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/html

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>