Summary
Update tree variables
Description
Update the current tree's variables.
Route
PUT /golden_config/treeVariables/:treeId
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
treeId |
string |
yes |
Id of the current tree |
treeVariables |
array |
yes |
Array of tree variable objects. |
Copied to Clipboard
{
"treeVariables": [
{
"name": "DTufbe",
"value": "dolore culpa consequat velit reprehenderit",
"type": "pattern"
},
{
"name": "aDiYUTS",
"value": "cupidatat mollit aute exercitation est",
"type": "literal"
},
{
"name": "fubR",
"value": "deserunt reprehenderit fugiat occaecat id",
"type": "literal"
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"treeVariables": {
"type": "array",
"items": {
"$ref": "treeVariable"
}
}
},
"required": [
"treeVariables"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
treeVariables |
object |
Response from updating the tree. |
Copied to Clipboard
{
"n": 24,
"nModified": 6,
"ok": 23
}
Copied to Clipboard
{
"type": "object",
"properties": {
"n": {
"type": "number",
"multipleOf": 1,
"minimum": 0,
"maximum": 25
},
"nModified": {
"type": "number",
"multipleOf": 1,
"minimum": 0,
"maximum": 25
},
"ok": {
"type": "number",
"multipleOf": 1,
"minimum": 0,
"maximum": 25
}
},
"required": [
"n",
"nModified",
"type"
]
}