POST api/FlockWaterConsumptions
Creates a new flock water consumption.
Request Information
URI Parameters
None.
Body Parameters
The flock water consumption to create.
FlockWaterConsumption| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
The ID of the record. |
integer |
None. |
| FlockManagementID |
The ID of the flock the water consumption is for. |
integer |
None. |
| GrowerHouseID |
The ID of the house the water consumption is for. |
integer |
None. |
| DayNumber |
The day the reading is for. This does not mean 1 = Monday. Instead, 1 would mean the first day of the placement. We also allow for a day zero. This allows techs to record the water meter reading at the start before the chicks arrive in order to be able to tell how much was consumed on the first day of the placement. |
integer |
None. |
| MeterReading |
The meter reading for the water on the given day. |
decimal number |
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,
"DayNumber": 4,
"MeterReading": 5.0,
"UniqueIdentifier": "sample string 6"
}
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 water consumption data.
FlockWaterConsumption| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
The ID of the record. |
integer |
None. |
| FlockManagementID |
The ID of the flock the water consumption is for. |
integer |
None. |
| GrowerHouseID |
The ID of the house the water consumption is for. |
integer |
None. |
| DayNumber |
The day the reading is for. This does not mean 1 = Monday. Instead, 1 would mean the first day of the placement. We also allow for a day zero. This allows techs to record the water meter reading at the start before the chicks arrive in order to be able to tell how much was consumed on the first day of the placement. |
integer |
None. |
| MeterReading |
The meter reading for the water on the given day. |
decimal number |
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. |
Response Formats
application/json, text/json
{
"ID": 1,
"FlockManagementID": 2,
"GrowerHouseID": 3,
"DayNumber": 4,
"MeterReading": 5.0,
"UniqueIdentifier": "sample string 6"
}