POST api/farmPenRoom/update

Request Information

URI Parameters

None.

Body Parameters

Farm_Pen_Room
NameDescriptionTypeAdditional information
Id

integer

None.

PenId

integer

Required

Name

string

Required

Max length: 50

Min length: 2

DateCreated

date

None.

DateModified

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "PenId": 2,
  "Name": "sample string 3",
  "DateCreated": "2025-12-04T23:14:32.2506428+01:00",
  "DateModified": "2025-12-04T23:14:32.2506428+01:00"
}

application/xml, text/xml

Sample:
<Farm_Pen_Room xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaseLibrary.Entities">
  <DateCreated>2025-12-04T23:14:32.2506428+01:00</DateCreated>
  <DateModified>2025-12-04T23:14:32.2506428+01:00</DateModified>
  <Id>1</Id>
  <Name>sample string 3</Name>
  <PenId>2</PenId>
</Farm_Pen_Room>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.