POST api/plants/updatePlant
Request Information
URI Parameters
None.
Body Parameters
Plant| Name | Description | Type | Additional information |
|---|---|---|---|
| iPlant | globally unique identifier |
None. |
|
| name | string |
None. |
|
| description | string |
None. |
|
| visible | boolean |
None. |
|
| createdAt | date |
None. |
|
| updatedAt | date |
None. |
|
| customFields | Collection of CustomFieldValue |
None. |
Request Formats
application/json, text/json
Sample:
{
"iPlant": "be191290-dd57-4e57-aee8-571932e3adfa",
"name": "sample string 2",
"description": "sample string 3",
"visible": true,
"createdAt": "2025-12-11T06:41:55.4847119-08:00",
"updatedAt": "2025-12-11T06:41:55.4847119-08:00",
"customFields": [
{
"iCustomFieldValue": "b436cba7-e08d-4330-b411-855ae543eadb",
"iCustomField": "438a688b-9c8c-4f2f-9be9-c0f946f84686",
"iCustomTable": "5db030d4-eaf8-418c-94ad-4f219e625b38",
"iContext": "e1d9411c-0230-421e-8974-c46db6be8438",
"name": "sample string 5",
"datatype": "sample string 6",
"defaultValue": "sample string 7",
"options": "sample string 8",
"required": true,
"value": "sample string 10"
},
{
"iCustomFieldValue": "b436cba7-e08d-4330-b411-855ae543eadb",
"iCustomField": "438a688b-9c8c-4f2f-9be9-c0f946f84686",
"iCustomTable": "5db030d4-eaf8-418c-94ad-4f219e625b38",
"iContext": "e1d9411c-0230-421e-8974-c46db6be8438",
"name": "sample string 5",
"datatype": "sample string 6",
"defaultValue": "sample string 7",
"options": "sample string 8",
"required": true,
"value": "sample string 10"
}
]
}
application/xml, text/xml
Sample:
<Plant xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDHRApi.Models.Plant">
<createdAt>2025-12-11T06:41:55.4847119-08:00</createdAt>
<customFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDHRApi.Models.Custom">
<d2p1:CustomFieldValue>
<d2p1:datatype>sample string 6</d2p1:datatype>
<d2p1:defaultValue>sample string 7</d2p1:defaultValue>
<d2p1:iContext>e1d9411c-0230-421e-8974-c46db6be8438</d2p1:iContext>
<d2p1:iCustomField>438a688b-9c8c-4f2f-9be9-c0f946f84686</d2p1:iCustomField>
<d2p1:iCustomFieldValue>b436cba7-e08d-4330-b411-855ae543eadb</d2p1:iCustomFieldValue>
<d2p1:iCustomTable>5db030d4-eaf8-418c-94ad-4f219e625b38</d2p1:iCustomTable>
<d2p1:name>sample string 5</d2p1:name>
<d2p1:options>sample string 8</d2p1:options>
<d2p1:required>true</d2p1:required>
<d2p1:value>sample string 10</d2p1:value>
</d2p1:CustomFieldValue>
<d2p1:CustomFieldValue>
<d2p1:datatype>sample string 6</d2p1:datatype>
<d2p1:defaultValue>sample string 7</d2p1:defaultValue>
<d2p1:iContext>e1d9411c-0230-421e-8974-c46db6be8438</d2p1:iContext>
<d2p1:iCustomField>438a688b-9c8c-4f2f-9be9-c0f946f84686</d2p1:iCustomField>
<d2p1:iCustomFieldValue>b436cba7-e08d-4330-b411-855ae543eadb</d2p1:iCustomFieldValue>
<d2p1:iCustomTable>5db030d4-eaf8-418c-94ad-4f219e625b38</d2p1:iCustomTable>
<d2p1:name>sample string 5</d2p1:name>
<d2p1:options>sample string 8</d2p1:options>
<d2p1:required>true</d2p1:required>
<d2p1:value>sample string 10</d2p1:value>
</d2p1:CustomFieldValue>
</customFields>
<description>sample string 3</description>
<iPlant>be191290-dd57-4e57-aee8-571932e3adfa</iPlant>
<name>sample string 2</name>
<updatedAt>2025-12-11T06:41:55.4847119-08:00</updatedAt>
<visible>true</visible>
</Plant>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.