POST v3/ranches.{ext}

Creates a new ranch

Request Information

URI Parameters

None.

Body Parameters

RanchCreationPayload
NameDescriptionTypeAdditional information
Ranch

Ranch identity, location, and weather API settings

RanchUpdateParams

None.

PlantingAreas

Planting areas with soil layers

Collection of RanchLotViewModel

None.

WeatherStationIds

Weather station IDs in priority order

Collection of integer

None.

Wells

Ranch wells

Collection of RanchWellViewModel

None.

Fertilizers

Catalog and custom fertilizers

Collection of RanchCreationFertilizerParams

None.

CommodityTypes

Commodity types and enabled crop types

Collection of CommodityTypesRanchSaveViewModel

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "Ranch": {
    "Name": "sample string 1",
    "Coordinates": "sample string 2",
    "Acres": 1.0,
    "SpatialETAvailable": true,
    "WeatherAPI_Id": 4
  },
  "PlantingAreas": [
    {
      "SoilLayers": [
        {
          "Id": 1,
          "RanchLotId": 2,
          "Depth": 3,
          "Sand": 1.0,
          "Silt": 1.0,
          "Organic": 1.0,
          "Density": 1.0,
          "Tension": 1.0,
          "Mineralization": 1.0
        },
        {
          "Id": 1,
          "RanchLotId": 2,
          "Depth": 3,
          "Sand": 1.0,
          "Silt": 1.0,
          "Organic": 1.0,
          "Density": 1.0,
          "Tension": 1.0,
          "Mineralization": 1.0
        }
      ],
      "Name": "sample string 1",
      "Acres": 2.0,
      "Coordinates": "sample string 3",
      "ObstructionDepth": 1.0
    },
    {
      "SoilLayers": [
        {
          "Id": 1,
          "RanchLotId": 2,
          "Depth": 3,
          "Sand": 1.0,
          "Silt": 1.0,
          "Organic": 1.0,
          "Density": 1.0,
          "Tension": 1.0,
          "Mineralization": 1.0
        },
        {
          "Id": 1,
          "RanchLotId": 2,
          "Depth": 3,
          "Sand": 1.0,
          "Silt": 1.0,
          "Organic": 1.0,
          "Density": 1.0,
          "Tension": 1.0,
          "Mineralization": 1.0
        }
      ],
      "Name": "sample string 1",
      "Acres": 2.0,
      "Coordinates": "sample string 3",
      "ObstructionDepth": 1.0
    }
  ],
  "WeatherStationIds": [
    1,
    2
  ],
  "Wells": [
    {
      "Id": 1,
      "Name": "sample string 1",
      "ElectricalConductivity": 1.0,
      "NitrogenPPM": 2.0
    },
    {
      "Id": 1,
      "Name": "sample string 1",
      "ElectricalConductivity": 1.0,
      "NitrogenPPM": 2.0
    }
  ],
  "Fertilizers": [
    {
      "IsPrivate": true,
      "Id": 1,
      "Name": "sample string 2",
      "FormulationTypeId": 1,
      "PoundsPerGallon": 1.0,
      "Nutrients": [
        {
          "Name": "sample string 1",
          "NutrientId": 2,
          "Percentage": 3.0
        },
        {
          "Name": "sample string 1",
          "NutrientId": 2,
          "Percentage": 3.0
        }
      ]
    },
    {
      "IsPrivate": true,
      "Id": 1,
      "Name": "sample string 2",
      "FormulationTypeId": 1,
      "PoundsPerGallon": 1.0,
      "Nutrients": [
        {
          "Name": "sample string 1",
          "NutrientId": 2,
          "Percentage": 3.0
        },
        {
          "Name": "sample string 1",
          "NutrientId": 2,
          "Percentage": 3.0
        }
      ]
    }
  ],
  "CommodityTypes": [
    {
      "CommodityTypeId": 1,
      "CropTypeIds": [
        1,
        2
      ]
    },
    {
      "CommodityTypeId": 1,
      "CropTypeIds": [
        1,
        2
      ]
    }
  ]
}

Response Information

Resource Description

RanchCreateResponse
NameDescriptionTypeAdditional information
Id

Ranch ID

integer

None.

Guid

Ranch GUID

globally unique identifier

None.

WeatherAPI_Id

Weather Service Id

integer

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "Id": 1,
  "Guid": "fe168a0a-f76c-46ae-b12d-1a74f4bb4112",
  "WeatherAPI_Id": 1
}

application/xml, text/xml

Sample:
<RanchCreateResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
  <Guid>fe168a0a-f76c-46ae-b12d-1a74f4bb4112</Guid>
  <WeatherAPI_Id>1</WeatherAPI_Id>
</RanchCreateResponse>