POST api/FlockInfractions
Action to post flock infractions to.
Request Information
URI Parameters
None.
Body Parameters
The flock infraction to save.
FlockInfraction| Name | Description | Type | Additional 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
{
"ID": 1,
"FlockManagementID": 2,
"GrowerHouseID": 3,
"InfractionDate": "2026-03-06T22:30:29.6016271-05:00",
"Description": "sample string 5",
"AuditorID": 1,
"FarmTechID": 1
}
application/x-www-form-urlencoded
Response Information
Resource Description
A 201 created response on success, or a 403 bad request if there are issues with the infraction data.
FlockInfraction| Name | Description | Type | Additional 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. |
Response Formats
application/json, text/json
{
"ID": 1,
"FlockManagementID": 2,
"GrowerHouseID": 3,
"InfractionDate": "2026-03-06T22:30:29.6016271-05:00",
"Description": "sample string 5",
"AuditorID": 1,
"FarmTechID": 1
}