PUT api/FarmHouses?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

FarmHouse
NameDescriptionTypeAdditional information
Id

integer

None.

FarmId

integer

None.

HouseName

string

None.

NumberOfUnit

integer

None.

HouseType

integer

None.

MaxCapacity

integer

None.

CreatedAt

date

None.

UpdatedAt

date

None.

DeletedAt

date

None.

DeletedBy

integer

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

DeletedStatus

boolean

None.

IotTHDeviceId

integer

None.

IotNH3DeviceId

integer

None.

Farm

Farm

None.

FarmHouseUnitLists

Collection of FarmHouseUnitList

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "FarmId": 2,
  "HouseName": "sample string 3",
  "NumberOfUnit": 4,
  "HouseType": 5,
  "MaxCapacity": 6,
  "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
  "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
  "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
  "DeletedBy": 9,
  "CreatedBy": 10,
  "UpdatedBy": 11,
  "DeletedStatus": true,
  "IotTHDeviceId": 13,
  "IotNH3DeviceId": 14,
  "Farm": {
    "Id": 1,
    "OwnerId": 2,
    "BirdTypeId": 3,
    "Name": "sample string 4",
    "Email": "sample string 5",
    "Phone": "sample string 6",
    "CountryId": 1,
    "StateId": 1,
    "CityId": 1,
    "Address": "sample string 7",
    "Latitude": 1.0,
    "Longitude": 1.0,
    "Website": "sample string 8",
    "FBPageLink": "sample string 9",
    "YoutubeLink": "sample string 10",
    "ActiveStatus": true,
    "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
    "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
    "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
    "DeletedBy": 14,
    "CreatedBy": 15,
    "UpdatedBy": 16,
    "DeletedStatus": true,
    "Country": {
      "Id": 1,
      "Name": "sample string 2",
      "SortCode2": "sample string 3",
      "SortCode3": "sample string 4",
      "PhoneCode": 5,
      "CurrencyName": "sample string 6",
      "CurrencyCode": "sample string 7",
      "CurrencySign": "sample string 8",
      "LanguageIsoCode": "sample string 9",
      "FlagIcon": "sample string 10",
      "ActiveStatus": true,
      "AppLanguageCode": "sample string 12",
      "Farms": []
    },
    "State": {
      "Id": 1,
      "Name": "sample string 2",
      "CountryId": 1,
      "Farms": []
    },
    "FarmHouses": [],
    "FarmIncubators": [
      {
        "Id": 1,
        "IncubatorTypeId": 2,
        "FarmId": 3,
        "IncubatorName": "sample string 4",
        "NumberOfSetterTray": 5,
        "NumberOfHatcherTray": 6,
        "MaxCapacitySetter": 7,
        "MaxCapacityHatcher": 8,
        "IsAuto": true,
        "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
        "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
        "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
        "DeletedBy": 12,
        "CreatedBy": 13,
        "UpdatedBy": 14,
        "DeletedStatus": true,
        "IotTHDeviceId": 16,
        "IotNH3DeviceId": 17,
        "FarmIncubatorTrayLists": [
          {
            "Id": 1,
            "FarmIncubatorId": 2,
            "TrayName": "sample string 3",
            "TrayType": 4,
            "Capacity": 5,
            "Occupied": 6,
            "Code": "sample string 7",
            "Remark": "sample string 8",
            "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedBy": 11,
            "CreatedBy": 12,
            "UpdatedBy": 13,
            "DeletedStatus": true
          },
          {
            "Id": 1,
            "FarmIncubatorId": 2,
            "TrayName": "sample string 3",
            "TrayType": 4,
            "Capacity": 5,
            "Occupied": 6,
            "Code": "sample string 7",
            "Remark": "sample string 8",
            "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedBy": 11,
            "CreatedBy": 12,
            "UpdatedBy": 13,
            "DeletedStatus": true
          }
        ]
      },
      {
        "Id": 1,
        "IncubatorTypeId": 2,
        "FarmId": 3,
        "IncubatorName": "sample string 4",
        "NumberOfSetterTray": 5,
        "NumberOfHatcherTray": 6,
        "MaxCapacitySetter": 7,
        "MaxCapacityHatcher": 8,
        "IsAuto": true,
        "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
        "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
        "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
        "DeletedBy": 12,
        "CreatedBy": 13,
        "UpdatedBy": 14,
        "DeletedStatus": true,
        "IotTHDeviceId": 16,
        "IotNH3DeviceId": 17,
        "FarmIncubatorTrayLists": [
          {
            "Id": 1,
            "FarmIncubatorId": 2,
            "TrayName": "sample string 3",
            "TrayType": 4,
            "Capacity": 5,
            "Occupied": 6,
            "Code": "sample string 7",
            "Remark": "sample string 8",
            "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedBy": 11,
            "CreatedBy": 12,
            "UpdatedBy": 13,
            "DeletedStatus": true
          },
          {
            "Id": 1,
            "FarmIncubatorId": 2,
            "TrayName": "sample string 3",
            "TrayType": 4,
            "Capacity": 5,
            "Occupied": 6,
            "Code": "sample string 7",
            "Remark": "sample string 8",
            "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedBy": 11,
            "CreatedBy": 12,
            "UpdatedBy": 13,
            "DeletedStatus": true
          }
        ]
      }
    ]
  },
  "FarmHouseUnitLists": [
    {
      "Id": 1,
      "FarmHouseId": 2,
      "UnitName": "sample string 3",
      "UnitType": 4,
      "Capacity": 5,
      "Occupied": 6,
      "Code": "sample string 7",
      "Remark": "sample string 8",
      "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
      "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
      "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
      "DeletedBy": 11,
      "CreatedBy": 12,
      "UpdatedBy": 13,
      "DeletedStatus": true,
      "BatchPhaseInfoFarmHouseUnitListMappings": [
        {
          "Id": 1,
          "BatchPhaseInfoId": 2,
          "FarmHouseUnitListId": 3,
          "BatchPhaseInfo": {
            "Id": 1,
            "BatchInfoId": 2,
            "BatchPhaseTypeId": 3,
            "InitialQuantity": 4,
            "BalancedQuantity": 5,
            "StartDate": "2025-12-06T10:23:29.6332058+06:00",
            "EndDate": "2025-12-06T10:23:29.6332058+06:00",
            "ActiveStatus": true,
            "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedBy": 10,
            "CreatedBy": 11,
            "UpdatedBy": 12,
            "DeletedStatus": true,
            "BatchPhaseInfoFarmHouseUnitListMappings": [],
            "IncubatorPhaseRecords": [
              {
                "Id": 1,
                "BatchPhaseInfoId": 2,
                "RecordDay": 3,
                "RecordDate": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1Status": true,
                "RecordTime2": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime2Status": true,
                "RecordTime3": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime3Status": true,
                "RecordTime4": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime4Status": true,
                "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
                "UpdatedBy": 14
              },
              {
                "Id": 1,
                "BatchPhaseInfoId": 2,
                "RecordDay": 3,
                "RecordDate": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1Status": true,
                "RecordTime2": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime2Status": true,
                "RecordTime3": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime3Status": true,
                "RecordTime4": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime4Status": true,
                "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
                "UpdatedBy": 14
              }
            ]
          }
        },
        {
          "Id": 1,
          "BatchPhaseInfoId": 2,
          "FarmHouseUnitListId": 3,
          "BatchPhaseInfo": {
            "Id": 1,
            "BatchInfoId": 2,
            "BatchPhaseTypeId": 3,
            "InitialQuantity": 4,
            "BalancedQuantity": 5,
            "StartDate": "2025-12-06T10:23:29.6332058+06:00",
            "EndDate": "2025-12-06T10:23:29.6332058+06:00",
            "ActiveStatus": true,
            "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedBy": 10,
            "CreatedBy": 11,
            "UpdatedBy": 12,
            "DeletedStatus": true,
            "BatchPhaseInfoFarmHouseUnitListMappings": [],
            "IncubatorPhaseRecords": [
              {
                "Id": 1,
                "BatchPhaseInfoId": 2,
                "RecordDay": 3,
                "RecordDate": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1Status": true,
                "RecordTime2": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime2Status": true,
                "RecordTime3": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime3Status": true,
                "RecordTime4": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime4Status": true,
                "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
                "UpdatedBy": 14
              },
              {
                "Id": 1,
                "BatchPhaseInfoId": 2,
                "RecordDay": 3,
                "RecordDate": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1Status": true,
                "RecordTime2": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime2Status": true,
                "RecordTime3": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime3Status": true,
                "RecordTime4": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime4Status": true,
                "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
                "UpdatedBy": 14
              }
            ]
          }
        }
      ]
    },
    {
      "Id": 1,
      "FarmHouseId": 2,
      "UnitName": "sample string 3",
      "UnitType": 4,
      "Capacity": 5,
      "Occupied": 6,
      "Code": "sample string 7",
      "Remark": "sample string 8",
      "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
      "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
      "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
      "DeletedBy": 11,
      "CreatedBy": 12,
      "UpdatedBy": 13,
      "DeletedStatus": true,
      "BatchPhaseInfoFarmHouseUnitListMappings": [
        {
          "Id": 1,
          "BatchPhaseInfoId": 2,
          "FarmHouseUnitListId": 3,
          "BatchPhaseInfo": {
            "Id": 1,
            "BatchInfoId": 2,
            "BatchPhaseTypeId": 3,
            "InitialQuantity": 4,
            "BalancedQuantity": 5,
            "StartDate": "2025-12-06T10:23:29.6332058+06:00",
            "EndDate": "2025-12-06T10:23:29.6332058+06:00",
            "ActiveStatus": true,
            "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedBy": 10,
            "CreatedBy": 11,
            "UpdatedBy": 12,
            "DeletedStatus": true,
            "BatchPhaseInfoFarmHouseUnitListMappings": [],
            "IncubatorPhaseRecords": [
              {
                "Id": 1,
                "BatchPhaseInfoId": 2,
                "RecordDay": 3,
                "RecordDate": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1Status": true,
                "RecordTime2": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime2Status": true,
                "RecordTime3": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime3Status": true,
                "RecordTime4": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime4Status": true,
                "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
                "UpdatedBy": 14
              },
              {
                "Id": 1,
                "BatchPhaseInfoId": 2,
                "RecordDay": 3,
                "RecordDate": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1Status": true,
                "RecordTime2": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime2Status": true,
                "RecordTime3": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime3Status": true,
                "RecordTime4": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime4Status": true,
                "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
                "UpdatedBy": 14
              }
            ]
          }
        },
        {
          "Id": 1,
          "BatchPhaseInfoId": 2,
          "FarmHouseUnitListId": 3,
          "BatchPhaseInfo": {
            "Id": 1,
            "BatchInfoId": 2,
            "BatchPhaseTypeId": 3,
            "InitialQuantity": 4,
            "BalancedQuantity": 5,
            "StartDate": "2025-12-06T10:23:29.6332058+06:00",
            "EndDate": "2025-12-06T10:23:29.6332058+06:00",
            "ActiveStatus": true,
            "CreatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedAt": "2025-12-06T10:23:29.6332058+06:00",
            "DeletedBy": 10,
            "CreatedBy": 11,
            "UpdatedBy": 12,
            "DeletedStatus": true,
            "BatchPhaseInfoFarmHouseUnitListMappings": [],
            "IncubatorPhaseRecords": [
              {
                "Id": 1,
                "BatchPhaseInfoId": 2,
                "RecordDay": 3,
                "RecordDate": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1Status": true,
                "RecordTime2": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime2Status": true,
                "RecordTime3": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime3Status": true,
                "RecordTime4": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime4Status": true,
                "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
                "UpdatedBy": 14
              },
              {
                "Id": 1,
                "BatchPhaseInfoId": 2,
                "RecordDay": 3,
                "RecordDate": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime1Status": true,
                "RecordTime2": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime2Status": true,
                "RecordTime3": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime3Status": true,
                "RecordTime4": "2025-12-06T10:23:29.6332058+06:00",
                "RecordTime4Status": true,
                "UpdatedAt": "2025-12-06T10:23:29.6332058+06:00",
                "UpdatedBy": 14
              }
            ]
          }
        }
      ]
    }
  ]
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.