Skip to content

Update Land Plot

Request

Updates a Land Plot by its identifier.

Security
Bearer
Path
parcelIdstring, (uuid)required
Body
supplierIdstring, (uuid)required

Unique identifier (UUID) of the supplier associated with the Land Plot.

parcelDescriptionstring or null

Description providing additional information about the Land Plot.

parcelCountrystring or null

Country in which the Land Plot is located.

parcelRegionstring or null

Region in which the Land Plot is located.

parcelStateCountystring or null

State, county, or equivalent administrative area where the Land Plot is located.

parcelStreetAddressstring or null

Street address or physical address associated with the Land Plot.

parcelPostCodestring or null

Postal or ZIP code of the Land Plot location.

parcelSizeHanumber, (double)

Total area of the Land Plot measured in hectares.

parcelNamestring, non-emptyrequired

Name used to identify the Land Plot.

commodityArray of strings, non-emptyrequired

List of commodities produced or associated with the Land Plot, such as Soy, Cocoa, or Coffee.

pointLatitudenumber, (double)
pointLongitudenumber, (double)
polygonFilestring or null
harvestRecordsArray of objects or null(HarvestRecordRequest)
curl -i -X PUT \
  'https://developer.sustainabilitymaster.ai/_mock/openapi/api/Parcel/land-plots/{parcelId}' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "supplierId": "e01eb4c4-8eb9-4fb7-b625-61f58c6148db",
    "parcelDescription": "string",
    "parcelCountry": "string",
    "parcelRegion": "string",
    "parcelStateCounty": "string",
    "parcelStreetAddress": "string",
    "parcelPostCode": "string",
    "parcelSizeHa": 0.1,
    "parcelName": "string",
    "commodity": [
      "string"
    ],
    "pointLatitude": 0.1,
    "pointLongitude": 0.1,
    "polygonFile": "string",
    "harvestRecords": [
      {
        "harvestId": "96fc4f16-b5e5-42f6-8e06-1b68da95ac4b",
        "harvestBatchId": "string",
        "harvestBatchDescription": "string",
        "harvestStartDt": "2019-08-24",
        "harvestEndDt": "2019-08-24",
        "harvestQty": 0.1,
        "harvestUnit": "string",
        "commodity": "string",
        "commonName": "string",
        "scientificName": "string",
        "isActive": true
      }
    ]
  }'

Responses

OK