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": "pU",
"value": "cillum laboris aliquip pariatur culpa",
"type": "pattern"
},
{
"name": "Z",
"value": "in veniam enim laborum",
"type": "literal"
},
{
"name": "vadMuRNnMJq",
"value": "labore",
"type": "literal"
},
{
"name": "yrmCADNV",
"value": "cillum non Duis sit",
"type": "pattern"
},
{
"name": "kEeK",
"value": "exercitation do Ut in",
"type": "pattern"
}
]
}
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": 16,
"nModified": 24,
"ok": 5
}
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"
]
}