Skip to content

Update Harvest Record

Request

Updates an unreferenced Harvest Record.

Security
Bearer
Path
harvestIdstring, (uuid)required
Body
harvestIdstring, (uuid)

Unique identifier (UUID) of the Harvest Record.

harvestBatchIdstring, non-emptyrequired

Unique identifier of the harvest batch associated with the Land Plot.

harvestBatchDescriptionstring or null

Description providing additional details about the harvest batch.

harvestStartDtstring, (date)

Start date of the harvest period, in YYYY-MM-DD format.

harvestEndDtstring, (date)

End date of the harvest period, in YYYY-MM-DD format.

harvestQtynumber, (double)

Total quantity harvested during the specified harvest period.

harvestUnitstring or null

Unit of measurement for the harvested quantity, such as KGM (kilograms).

commoditystring or null

Commodity associated with the harvest batch, such as Soy.

commonNamestring or null

Common name of the harvested product or species.

scientificNamestring or null

Scientific name of the harvested species, where applicable.

isActiveboolean or null

Indicates whether the Harvest Record is active.

curl -i -X PUT \
  'https://developer.sustainabilitymaster.ai/_mock/openapi/api/Parcel/harvest-records/{harvestId}' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "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