POST api/plants/addPlantsFromTemplate
Request Information
URI Parameters
None.
Body Parameters
Collection of 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": "15df8e60-9d21-4ae6-b71f-d742ae8510ec",
"name": "sample string 2",
"description": "sample string 3",
"visible": true,
"createdAt": "2025-12-11T06:41:55.284137-08:00",
"updatedAt": "2025-12-11T06:41:55.284137-08:00",
"customFields": [
{
"iCustomFieldValue": "536aebcd-b3a4-4e4b-9227-dcf295008ebe",
"iCustomField": "dd464ec4-c5c1-487a-988e-5df0dd7a5949",
"iCustomTable": "7d096cc5-a93f-47d4-9699-84fc1f222059",
"iContext": "94a89b4b-7d21-4431-a475-6fee6df8f8fe",
"name": "sample string 5",
"datatype": "sample string 6",
"defaultValue": "sample string 7",
"options": "sample string 8",
"required": true,
"value": "sample string 10"
},
{
"iCustomFieldValue": "536aebcd-b3a4-4e4b-9227-dcf295008ebe",
"iCustomField": "dd464ec4-c5c1-487a-988e-5df0dd7a5949",
"iCustomTable": "7d096cc5-a93f-47d4-9699-84fc1f222059",
"iContext": "94a89b4b-7d21-4431-a475-6fee6df8f8fe",
"name": "sample string 5",
"datatype": "sample string 6",
"defaultValue": "sample string 7",
"options": "sample string 8",
"required": true,
"value": "sample string 10"
}
]
},
{
"iPlant": "15df8e60-9d21-4ae6-b71f-d742ae8510ec",
"name": "sample string 2",
"description": "sample string 3",
"visible": true,
"createdAt": "2025-12-11T06:41:55.284137-08:00",
"updatedAt": "2025-12-11T06:41:55.284137-08:00",
"customFields": [
{
"iCustomFieldValue": "536aebcd-b3a4-4e4b-9227-dcf295008ebe",
"iCustomField": "dd464ec4-c5c1-487a-988e-5df0dd7a5949",
"iCustomTable": "7d096cc5-a93f-47d4-9699-84fc1f222059",
"iContext": "94a89b4b-7d21-4431-a475-6fee6df8f8fe",
"name": "sample string 5",
"datatype": "sample string 6",
"defaultValue": "sample string 7",
"options": "sample string 8",
"required": true,
"value": "sample string 10"
},
{
"iCustomFieldValue": "536aebcd-b3a4-4e4b-9227-dcf295008ebe",
"iCustomField": "dd464ec4-c5c1-487a-988e-5df0dd7a5949",
"iCustomTable": "7d096cc5-a93f-47d4-9699-84fc1f222059",
"iContext": "94a89b4b-7d21-4431-a475-6fee6df8f8fe",
"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:
<ArrayOfPlant xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDHRApi.Models.Plant">
<Plant>
<createdAt>2025-12-11T06:41:55.284137-08:00</createdAt>
<customFields xmlns:d3p1="http://schemas.datacontract.org/2004/07/eDHRApi.Models.Custom">
<d3p1:CustomFieldValue>
<d3p1:datatype>sample string 6</d3p1:datatype>
<d3p1:defaultValue>sample string 7</d3p1:defaultValue>
<d3p1:iContext>94a89b4b-7d21-4431-a475-6fee6df8f8fe</d3p1:iContext>
<d3p1:iCustomField>dd464ec4-c5c1-487a-988e-5df0dd7a5949</d3p1:iCustomField>
<d3p1:iCustomFieldValue>536aebcd-b3a4-4e4b-9227-dcf295008ebe</d3p1:iCustomFieldValue>
<d3p1:iCustomTable>7d096cc5-a93f-47d4-9699-84fc1f222059</d3p1:iCustomTable>
<d3p1:name>sample string 5</d3p1:name>
<d3p1:options>sample string 8</d3p1:options>
<d3p1:required>true</d3p1:required>
<d3p1:value>sample string 10</d3p1:value>
</d3p1:CustomFieldValue>
<d3p1:CustomFieldValue>
<d3p1:datatype>sample string 6</d3p1:datatype>
<d3p1:defaultValue>sample string 7</d3p1:defaultValue>
<d3p1:iContext>94a89b4b-7d21-4431-a475-6fee6df8f8fe</d3p1:iContext>
<d3p1:iCustomField>dd464ec4-c5c1-487a-988e-5df0dd7a5949</d3p1:iCustomField>
<d3p1:iCustomFieldValue>536aebcd-b3a4-4e4b-9227-dcf295008ebe</d3p1:iCustomFieldValue>
<d3p1:iCustomTable>7d096cc5-a93f-47d4-9699-84fc1f222059</d3p1:iCustomTable>
<d3p1:name>sample string 5</d3p1:name>
<d3p1:options>sample string 8</d3p1:options>
<d3p1:required>true</d3p1:required>
<d3p1:value>sample string 10</d3p1:value>
</d3p1:CustomFieldValue>
</customFields>
<description>sample string 3</description>
<iPlant>15df8e60-9d21-4ae6-b71f-d742ae8510ec</iPlant>
<name>sample string 2</name>
<updatedAt>2025-12-11T06:41:55.284137-08:00</updatedAt>
<visible>true</visible>
</Plant>
<Plant>
<createdAt>2025-12-11T06:41:55.284137-08:00</createdAt>
<customFields xmlns:d3p1="http://schemas.datacontract.org/2004/07/eDHRApi.Models.Custom">
<d3p1:CustomFieldValue>
<d3p1:datatype>sample string 6</d3p1:datatype>
<d3p1:defaultValue>sample string 7</d3p1:defaultValue>
<d3p1:iContext>94a89b4b-7d21-4431-a475-6fee6df8f8fe</d3p1:iContext>
<d3p1:iCustomField>dd464ec4-c5c1-487a-988e-5df0dd7a5949</d3p1:iCustomField>
<d3p1:iCustomFieldValue>536aebcd-b3a4-4e4b-9227-dcf295008ebe</d3p1:iCustomFieldValue>
<d3p1:iCustomTable>7d096cc5-a93f-47d4-9699-84fc1f222059</d3p1:iCustomTable>
<d3p1:name>sample string 5</d3p1:name>
<d3p1:options>sample string 8</d3p1:options>
<d3p1:required>true</d3p1:required>
<d3p1:value>sample string 10</d3p1:value>
</d3p1:CustomFieldValue>
<d3p1:CustomFieldValue>
<d3p1:datatype>sample string 6</d3p1:datatype>
<d3p1:defaultValue>sample string 7</d3p1:defaultValue>
<d3p1:iContext>94a89b4b-7d21-4431-a475-6fee6df8f8fe</d3p1:iContext>
<d3p1:iCustomField>dd464ec4-c5c1-487a-988e-5df0dd7a5949</d3p1:iCustomField>
<d3p1:iCustomFieldValue>536aebcd-b3a4-4e4b-9227-dcf295008ebe</d3p1:iCustomFieldValue>
<d3p1:iCustomTable>7d096cc5-a93f-47d4-9699-84fc1f222059</d3p1:iCustomTable>
<d3p1:name>sample string 5</d3p1:name>
<d3p1:options>sample string 8</d3p1:options>
<d3p1:required>true</d3p1:required>
<d3p1:value>sample string 10</d3p1:value>
</d3p1:CustomFieldValue>
</customFields>
<description>sample string 3</description>
<iPlant>15df8e60-9d21-4ae6-b71f-d742ae8510ec</iPlant>
<name>sample string 2</name>
<updatedAt>2025-12-11T06:41:55.284137-08:00</updatedAt>
<visible>true</visible>
</Plant>
</ArrayOfPlant>
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.