ApplicationDataClient.CreateOrUpdate(String, String, RequestContent, RequestOptions) Method

Definition

Creates or updates an application data resource under a particular farmer.

public virtual Azure.Response CreateOrUpdate (string farmerId, string applicationDataId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = default);
abstract member CreateOrUpdate : string * string * Azure.Core.RequestContent * Azure.RequestOptions -> Azure.Response
override this.CreateOrUpdate : string * string * Azure.Core.RequestContent * Azure.RequestOptions -> Azure.Response
Public Overridable Function CreateOrUpdate (farmerId As String, applicationDataId As String, requestBody As RequestContent, Optional requestOptions As RequestOptions = Nothing) As Response

Parameters

farmerId
String

ID of the associated farmer.

applicationDataId
String

ID of the application data resource.

requestBody
RequestContent

The request body.

requestOptions
Azure.RequestOptions

The request options.

Returns

Response

Remarks

Schema for Request Body:

applicationProductDetailsApplicationProductDetail[] Application product details.
avgMaterialMeasure Schema for storing measurement reading and unit.
totalMaterialMeasure Schema for storing measurement reading and unit.
areaMeasure Schema for storing measurement reading and unit.
sourcestring Source of the operation data.
operationModifiedDateTimestring (ISO 8601 Format) Modified date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.

Note: this will be specified by the source provider itself.

operationStartDateTimestring (ISO 8601 Format) Start date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.
operationEndDateTimestring (ISO 8601 Format) End date-time of the operation data, sample format: yyyy-MM-ddTHH:mm:ssZ.
attachmentsLinkstring Link for attachments.
associatedBoundaryIdstring Optional boundary ID of the field for which operation was applied.
operationBoundaryIdstring Optional boundary ID of the actual area for which operation was applied inside the specified field.
farmerIdstring Farmer ID which belongs to the operation data.
idstring Unique resource ID.
eTagstring The ETag value to implement optimistic concurrency.
statusstring Status of the resource.
createdDateTimestring (ISO 8601 Format) Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
modifiedDateTimestring (ISO 8601 Format) Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
namestring Name to identify resource.
descriptionstring Textual description of the resource.
propertiesDictionary<string, AnyObject> 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 and numeral values are supported.

Schema for Measure:
unitstring Data unit.
valuenumber Data value.
Schema for ApplicationProductDetail:
productNamestring Name of the product applied.
isCarrierboolean A flag indicating whether product is a carrier for a tank mix.
avgMaterialMeasure Schema for storing measurement reading and unit.
totalMaterialMeasure Schema for storing measurement reading and unit.

Applies to