PUT api/FlockInfractions/{id}

Action to update an existing flock infraction record.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the flock infraction record to update.

integer

Required

Body Parameters

The infraction data that will be used to update the record.

FlockInfraction
NameDescriptionTypeAdditional information
ID

The ID of the record.

integer

None.

FlockManagementID

The ID of the associated flock management record.

integer

None.

GrowerHouseID

The ID of the associated grower house record.

integer

None.

InfractionDate

The date of the infraction.

date

None.

Description

The description of the infraction.

string

None.

AuditorID

Nullable. The ID of the associated auditor record.

integer

None.

FarmTechID

Nullable. The ID of the associated farm tech record.

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "FlockManagementID": 2,
  "GrowerHouseID": 3,
  "InfractionDate": "2026-03-06T22:33:04.9067917-05:00",
  "Description": "sample string 5",
  "AuditorID": 1,
  "FarmTechID": 1
}

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

Response Information

Resource Description

An empty response body with a 204 response on success.

None.