PUT api/FlockMortalities/{id}
Updates an existing flock mortality record.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of the mortality record to update. |
integer |
Required |
Body Parameters
The mortality data that will be used to update the record.
FlockMortality| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
The ID of the record. |
integer |
None. |
| FlockManagementID |
The ID of the flock the mortality is for. |
integer |
None. |
| GrowerHouseID |
The ID of the house the mortality is for. |
integer |
None. |
| WeekNumber |
The number of the week the mortality is for. Week 1 is the week of the placement. |
integer |
None. |
| DayNumber |
The day within the week the placement is for. This does not mean 1 = Monday, this is the offset in days from the week number. So week 2, day 1, would be placement date + 8 days. |
integer |
None. |
| AmDeaths |
The number of chicks that died in the morning. |
integer |
None. |
| PmDeaths |
The number of chicks that died in the evening. |
integer |
None. |
| Culls |
The number of chicks that had to be killed due to some issue (ex. injury). |
integer |
None. |
| UniqueIdentifier |
Uniquely identifies this record. This ID is assigned by the individual tablets using the farm tech app. That way, records created from the tablets have a 100% globally unique identifier that allows them to determine if a record on their device already exists on the server. |
string |
None. |
Request Formats
application/json, text/json
{
"ID": 1,
"FlockManagementID": 2,
"GrowerHouseID": 3,
"WeekNumber": 4,
"DayNumber": 5,
"AmDeaths": 6,
"PmDeaths": 7,
"Culls": 8,
"UniqueIdentifier": "sample string 9"
}
application/x-www-form-urlencoded
Response Information
Resource Description
An empty response body with a 204 response on success.
None.