Skip to content

Create Harvest Record

Request

Creates a Harvest Record for the supplied Land Plot.

Security
Bearer
Path
parcelIdstring, (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 POST \
  'https://developer.sustainabilitymaster.ai/_mock/openapi/api/Parcel/land-plots/{parcelId}/harvest-records' \
  -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