---
title: "PATCH /parties/{partyId}/planting-data/{plantingDataId}"
method: PATCH
path: "/parties/{partyId}/planting-data/{plantingDataId}"
tags: ["PlantingData"]
---

# PATCH /parties/{partyId}/planting-data/{plantingDataId}

`PATCH /parties/{partyId}/planting-data/{plantingDataId}`

Creates or updates an planting data resource under a particular party.

## Path parameters

- `partyId` string, required
- `plantingDataId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Success

- PlantingData — Schema of planting data resource.
  - `avgPlantingRate` Measure — Schema for storing measurement reading and unit.
    - `unit` string — Data unit.
    - `value` number, double — Data value.
  - `totalMaterial` Measure — Schema for storing measurement reading and unit.
    - `unit` string — Data unit.
    - `value` number, double — Data value.
  - `avgMaterial` Measure — Schema for storing measurement reading and unit.
    - `unit` string — Data unit.
    - `value` number, double — Data value.
  - `plantingProductDetails` PlantingProductDetail[] — Planting product details.
    - `productName` string — Name of the product.
    - `area` Measure — Schema for storing measurement reading and unit.
      - `unit` string — Data unit.
      - `value` number, double — Data value.
    - `totalMaterial` Measure — Schema for storing measurement reading and unit.
      - `unit` string — Data unit.
      - `value` number, double — Data value.
    - `avgMaterial` Measure — Schema for storing measurement reading and unit.
      - `unit` string — Data unit.
      - `value` number, double — Data value.
  - `area` Measure — Schema for storing measurement reading and unit.
    - `unit` string — Data unit.
    - `value` number, double — Data value.
  - `operationModifiedDateTime` string, date-time — Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ. Note: this will be specified by the source provider itself.
  - `operationStartDateTime` string, date-time — Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.
  - `operationEndDateTime` string, date-time — End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.
  - `associatedResource` GeoResource — Schema for storing resource type and resource id.
    - `type` 'Field' | 'SeasonalField' | 'Zone' | 'Prescription' | 'PlantTissueAnalysis' | 'PlantingData' | 'ApplicationData' | 'HarvestData' | 'TillageData' — Resource Type.
    - `id` string — Resource Id.
  - `partyId` string — Party ID which belongs to the operation data.
  - `id` string — Unique resource ID.
  - `eTag` string — The ETag value to implement optimistic concurrency.
  - `status` string — Status of the resource.
  - `createdDateTime` string, date-time — Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
  - `modifiedDateTime` string, date-time — Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
  - `source` string — Source of the resource.
  - `geometry` GeoJsonObject — GeoJSON (For more details: https://geojson.org/). Note: Coordinates are expected in [Longitude, Latitude] format.
    - `type` 'Point' | 'Polygon' | 'MultiPolygon', required — GeoJSON object type.
  - `name` string — Name to identify resource.
  - `description` string — Textual description of the resource.
  - `createdBy` string — Created by user/tenant id.
  - `modifiedBy` string — Modified by user/tenant id.
  - `properties` object — A collection of key value pairs that belongs to the resource. Each pair must not have a key greater than 50 characters and must not have a value greater than 150 characters. Note: A maximum of 25 key value pairs can be provided for a resource and only string, numeral and datetime (yyyy-MM-ddTHH:mm:ssZ) values are supported.

## Other responses

- `201` — Created
- `default` — Error

---

[API](https://skmtc.net/azure/apis/agrifood-agfoodplatform.md) · [All operations](https://skmtc.net/azure/apis/agrifood-agfoodplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/agrifood-agfoodplatform/revisions/33cf1de6e0c4/schema)
