POST api/FlockInspectionImages

Creates a new flock inspection image.

Request Information

URI Parameters

None.

Body Parameters

The image to create.

FlockInspectionImage
NameDescriptionTypeAdditional 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

Sample:
{
  "ID": 1,
  "FlockInspectionID": 2,
  "Image": "QEA=",
  "DateTaken": "2026-03-06T22:30:28.6101152-05:00",
  "UniqueIdentifier": "sample string 4"
}

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

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.

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.