你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Plant Tissue Analyses - Create Or Update
创建或更新植物组织分析资源。
PATCH {endpoint}/parties/{partyId}/plant-tissue-analyses/{plantTissueAnalysisId}?api-version=2023-11-01-preview
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
endpoint
|
path | True |
string uri |
命名空间的主机名,例如 admaInstanceName.farmbeats.azure.net |
party
|
path | True |
string |
参与方资源的 ID。 |
plant
|
path | True |
string |
植物组织分析资源的 ID。 |
api-version
|
query | True |
string |
请求的 API 版本 |
请求头
Media Types: "application/merge-patch+json"
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
请为授权的 API 调用提供有效的持有者令牌。 请注意,如果之前尝试过未经身份验证的调用,则可能需要清除浏览器缓存。 |
请求正文
Media Types: "application/merge-patch+json"
名称 | 类型 | 说明 |
---|---|---|
cropId |
string |
关联裁剪的 ID。 |
cropProductId |
string |
关联的 Crop 产品的 ID。 |
description |
string |
资源的文本说明。 |
fieldId |
string |
关联字段的 ID。 |
geometry | GeoJsonObject: |
GeoJSON (有关详细信息: https://geojson.org/) 。 注意:坐标应采用 [经度, 纬度] 格式。 |
growthStage |
string |
此植物组织分析的生长阶段。 |
labDetails |
表示 LabDetails 对象的模型。 |
|
name |
string |
用于标识资源的名称。 |
plantAppearance |
string |
此植物组织分析的植物外观。 |
plantPart |
string |
此植物组织分析的植物部分。 |
plantPosition |
string |
此植物组织分析的植物位置。 |
plantingDateTime |
string |
此植物组织分析的种植日期时间。 |
properties |
属于资源的键值对的集合。 每对的键不能超过 50 个字符,并且值不能大于 150 个字符。 注意:最多可以为资源提供 25 个键值对,并且仅支持字符串、数字和 datetime (yyyy-MM-ddTHH:mm:ssZ) 值。 |
|
sampleCollectionCondition |
string |
此植物组织分析的样本收集条件。 |
sampleCollectionDateTime |
string |
此植物组织分析的样本收集 dateTime。 |
sampleReceivedDateTime |
string |
接收的 dateTime 示例。 |
sampleTestResultDateTime |
string |
此植物组织分析的样本测试结果 dateTime。 |
seasonId |
string |
关联季节的 ID。 |
source |
string |
资源的源。 |
status |
string |
资源的状态。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
成功 |
|
201 Created |
创建 |
|
Other Status Codes |
错误 标头 x-ms-error-code: string |
安全性
Authorization
请为授权的 API 调用提供有效的持有者令牌。 请注意,如果之前尝试过未经身份验证的调用,则可能需要清除浏览器缓存。
类型:
apiKey
在:
header
示例
PlantTissueAnalyses_CreateOrUpdate
示例请求
PATCH {endpoint}/parties/PARTY123/plant-tissue-analyses/PLANTTISSUEANALYSIS123?api-version=2023-11-01-preview
{
"seasonId": "Season123",
"cropId": "Crop123",
"fieldId": "Field123",
"plantingDateTime": "2022-05-11T07:00:10Z",
"plantPart": "PlantPart",
"plantPosition": "PlantPosition",
"plantAppearance": "PlantAppearance",
"sampleCollectionCondition": "SampleCollectionCondition",
"sampleCollectionDateTime": "2021-04-21T06:49:30Z",
"sampleReceivedDateTime": "2021-04-22T06:49:30Z",
"sampleTestResultDateTime": "2021-04-23T06:49:30Z",
"labDetails": {
"code": "LabId",
"name": "Name",
"address": "Address",
"description": "Description"
},
"status": "Active",
"name": "John Smith's ManagementZone",
"description": "Some description",
"source": "source",
"properties": {
"Irrigated": "Yes"
}
}
示例响应
{
"partyId": "PARTY123",
"id": "PLANTTISSUEANALYSIS123",
"seasonId": "Season123",
"cropId": "Crop123",
"fieldId": "Field123",
"plantingDateTime": "2021-04-21T06:49:30Z",
"plantPart": "PlantPart",
"plantPosition": "PlantPosition",
"plantAppearance": "PlantAppearance",
"sampleCollectionCondition": "SampleCollectionCondition",
"sampleCollectionDateTime": "2021-04-21T06:49:30Z",
"sampleReceivedDateTime": "2021-04-22T06:49:30Z",
"sampleTestResultDateTime": "2021-04-23T06:49:30Z",
"labDetails": {
"code": "LabId",
"name": "Name",
"address": "Address",
"description": "Description"
},
"name": "John Smith's ManagementZone",
"status": "Active",
"description": "Some description",
"source": "source",
"properties": {
"Irrigated": "Yes"
},
"createdDateTime": "2021-04-21T06:49:30Z",
"modifiedDateTime": "2021-04-21T06:49:30Z",
"createdBy": "00000000-0000-0000-0000-000000000000",
"modifiedBy": "00000000-0000-0000-0000-000000000000",
"eTag": "0f8fad5b-d9cb-469f-a165-70867728950e"
}
{
"partyId": "PARTY123",
"id": "PLANTTISSUEANALYSIS123",
"seasonId": "Season123",
"cropId": "Crop123",
"fieldId": "Field123",
"plantingDateTime": "2021-04-21T06:49:30Z",
"plantPart": "PlantPart",
"plantPosition": "PlantPosition",
"plantAppearance": "PlantAppearance",
"sampleCollectionCondition": "SampleCollectionCondition",
"sampleCollectionDateTime": "2021-04-21T06:49:30Z",
"sampleReceivedDateTime": "2021-04-22T06:49:30Z",
"sampleTestResultDateTime": "2021-04-23T06:49:30Z",
"labDetails": {
"code": "LabId",
"name": "Name",
"address": "Address",
"description": "Description"
},
"name": "John Smith's ManagementZone",
"status": "Active",
"description": "Some description",
"source": "source",
"properties": {
"Irrigated": "Yes"
},
"createdDateTime": "2021-04-21T06:49:30Z",
"modifiedDateTime": "2021-04-21T06:49:30Z",
"createdBy": "00000000-0000-0000-0000-000000000000",
"modifiedBy": "00000000-0000-0000-0000-000000000000",
"eTag": "0f8fad5b-d9cb-469f-a165-70867728950e"
}
定义
名称 | 说明 |
---|---|
Error |
Azure AgPlatform 服务出错。 |
Error |
来自 Azure AgPlatform 服务的错误响应。 请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses ErrorResponse 参考文档。 |
Geo |
GeoJSON 对象类型。 |
Inner |
包含错误列表的内部错误。有关 InnerError 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object 。 |
Lab |
表示 LabDetails 对象的模型。 |
Multi |
MultiPolygon 几何图形。 |
Plant |
植物组织分析对象的 Api 模型。 |
Point |
点几何图形。 |
Polygon |
多边形几何图形。 |
Error
Azure AgPlatform 服务出错。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
服务器定义的错误代码集。 |
details |
Error[] |
有关导致此报告错误的特定错误的详细信息数组。 |
innererror |
包含错误列表的内部错误。有关 InnerError 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object 。 |
|
message |
string |
错误的用户可读表示形式。 |
target |
string |
错误的目标。 |
ErrorResponse
来自 Azure AgPlatform 服务的错误响应。 请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses ErrorResponse 参考文档。
名称 | 类型 | 说明 |
---|---|---|
error |
Azure AgPlatform 服务出错。 |
|
traceId |
string |
唯一跟踪 ID。 |
GeoJsonObjectType
GeoJSON 对象类型。
名称 | 类型 | 说明 |
---|---|---|
MultiPolygon |
string |
|
Point |
string |
|
Polygon |
string |
InnerError
包含错误列表的内部错误。有关 InnerError 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object 。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
包含的错误提供的特定错误代码。 |
innererror |
包含错误列表的内部错误。有关 InnerError 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object 。 |
LabDetails
表示 LabDetails 对象的模型。
名称 | 类型 | 说明 |
---|---|---|
address |
string |
资源的地址。 |
code |
string |
资源的代码。 |
description |
string |
资源的说明。 |
name |
string |
资源的名称。 |
MultiPolygon
MultiPolygon 几何图形。
名称 | 类型 | 说明 |
---|---|---|
coordinates |
number[] |
获取或设置 GeoJSON 对象的坐标。 它必须是多边形数组,每个多边形都包含线性环的列表。 对于具有多个这些环的多边形,第一个必须是外环,任何其他环必须是内部环。 |
type | string: |
GeoJSON 对象类型。 |
PlantTissueAnalysis
植物组织分析对象的 Api 模型。
名称 | 类型 | 说明 |
---|---|---|
createdBy |
string |
由用户/租户 ID 创建。 |
createdDateTime |
string |
创建资源的日期时间,示例格式:yyyy-MM-ddTHH:mm:ssZ。 |
cropId |
string |
关联裁剪的 ID。 |
cropProductId |
string |
关联的 Crop 产品的 ID。 |
description |
string |
资源的文本说明。 |
eTag |
string |
实现乐观并发的 ETag 值。 |
fieldId |
string |
关联字段的 ID。 |
geometry | GeoJsonObject: |
GeoJSON (有关详细信息: https://geojson.org/) 。 注意:坐标应采用 [经度, 纬度] 格式。 |
growthStage |
string |
此植物组织分析的生长阶段。 |
id |
string |
唯一资源 ID。 |
labDetails |
表示 LabDetails 对象的模型。 |
|
modifiedBy |
string |
由用户/租户 ID 修改。 |
modifiedDateTime |
string |
上次修改资源的日期时间,示例格式:yyyy-MM-ddTHH:mm:ssZ。 |
name |
string |
用于标识资源的名称。 |
partyId |
string |
关联群的 ID。 |
plantAppearance |
string |
此植物组织分析的植物外观。 |
plantPart |
string |
此植物组织分析的植物部分。 |
plantPosition |
string |
此植物组织分析的植物位置。 |
plantingDateTime |
string |
此植物组织分析的种植日期时间。 |
properties |
属于资源的键值对的集合。 每对的键不能超过 50 个字符,并且值不能大于 150 个字符。 注意:最多可以为资源提供 25 个键值对,并且仅支持字符串、数字和 datetime (yyyy-MM-ddTHH:mm:ssZ) 值。 |
|
sampleCollectionCondition |
string |
此植物组织分析的样本收集条件。 |
sampleCollectionDateTime |
string |
此植物组织分析的样本收集 dateTime。 |
sampleReceivedDateTime |
string |
接收的 dateTime 示例。 |
sampleTestResultDateTime |
string |
此植物组织分析的样本测试结果 dateTime。 |
seasonId |
string |
关联季节的 ID。 |
source |
string |
资源的源。 |
status |
string |
资源的状态。 |
Point
点几何图形。
名称 | 类型 | 说明 |
---|---|---|
coordinates |
number[] |
获取或设置此点的坐标。 对于 2D 或 3D 系统,它必须是包含 2 或 3 个元素的数组。 |
type | string: |
GeoJSON 对象类型。 |
Polygon
多边形几何图形。
名称 | 类型 | 说明 |
---|---|---|
coordinates |
number[] |
获取或设置 GeoJSON 对象的类型。 它必须是线性环坐标数组的数组。 对于具有多个这些环的多边形,第一个必须是外环,任何其他环必须是内部环。 |
type | string: |
GeoJSON 对象类型。 |