POST api/FlockInspectionImages
Creates a new flock inspection image.
Request Information
URI Parameters
None.
Body Parameters
The image to create.
FlockInspectionImage| Name | Description | Type | Additional information |
|---|---|---|---|
| ID |
The ID of the record. |
integer |
None. |
| FlockInspectionID |
The ID of the flock inspection the image is for. |
integer |
None. |
| Image |
The raw image. |
Collection of byte |
None. |
| DateTaken |
The date the image was taken. |
date |
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,
"FlockInspectionID": 2,
"Image": "QEA=",
"DateTaken": "2026-03-06T22:30:28.6101152-05:00",
"UniqueIdentifier": "sample string 4"
}
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 image data. Note that instead of returning the entire created resource, only the ID is returned, since otherwise we're wasting bandwidth sending the entire blob back over the network.
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.