PUT api/FlockInspections/{id}

Updates an existing flock inspection record and potentially deletes one or more inspection images.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the inspection record to update.

integer

Required

Body Parameters

The bundle of the flock inspection, and optionally inspection image IDs of any inspection images to delete.

FlockInspectionPutBundle
NameDescriptionTypeAdditional information
FlockInspection

The inspection to create.

FlockInspection

None.

FlockInspectionImagesToDelete

The list of IDs of inspection images to delete.

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "FlockInspection": {
    "ID": 1,
    "FlockManagementID": 2,
    "GrowerHouseID": 3,
    "FarmTechID": 4,
    "ScheduledFarmTechID": 5,
    "InspectionDate": "2026-03-06T22:34:26.3379217-05:00",
    "HasContactWithGrower": true,
    "ReasonForVisit": "sample string 8",
    "IfOtherReason": "sample string 9",
    "WeatherConditionID": 10,
    "OutsideTemperature": 11.0,
    "IsOutsideHousekeepingAcceptable": true,
    "AreWorkRoomConditionsAcceptable": true,
    "AreDocumentsAcceptable": true,
    "AreThereRodentsOrInsects": true,
    "IsFlockAppearanceAcceptable": true,
    "IsFlockBehaviorNormal": true,
    "IsFeedBinAreaAcceptable": true,
    "IsFeedAcceptable": true,
    "IsWaterAcceptable": true,
    "IsMedicated": true,
    "IsLitterAcceptable": true,
    "AreDroppingsAcceptable": true,
    "IsVentilationAcceptable": true,
    "VentilationCurtainID": 25,
    "FanID": 26,
    "IsAirQualityAcceptable": true,
    "AreThermalConditionsAcceptable": true,
    "AmmoniaPpm": 29,
    "IsHumidityPercentAcceptable": false,
    "HumidityPercentage": 1.0,
    "AreLeaksAcceptable": true,
    "IsInsideHousekeepingAcceptable": true,
    "InsideTemperature1": 33.0,
    "InsideTemperature2": 1.0,
    "InsideTemperature3": 1.0,
    "LightingHours": 34,
    "IsCareOfSickOrInjuredAcceptable": true,
    "IsCompassionateCareAcceptable": true,
    "AdditionalComments": "sample string 37",
    "Signature": "QEA=",
    "InfractionLevelID": 1,
    "InfractionPoints": 38,
    "InfractionNotes": "sample string 39",
    "CurrentGrowerInfractionPoints": 40,
    "IsSignatureRequired": true,
    "IsDateToCorrectRequired": true,
    "DateToCorrect": "2026-03-06T22:34:26.3379217-05:00",
    "LastWeight": 1.0,
    "Section1Comments": "sample string 43",
    "Section2Comments": "sample string 44",
    "Section3Comments": "sample string 45",
    "Section4Comments": "sample string 46",
    "Section5Comments": "sample string 47",
    "GerberNotes": "sample string 48",
    "UniqueIdentifier": "sample string 49",
    "IsVerified": true
  },
  "FlockInspectionImagesToDelete": [
    1,
    2
  ]
}

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

Response Information

Resource Description

An empty response body with a 204 response on success.

None.