Summary
Add Tasks to Node
Description
Add Tasks to a node in a Golden Config tree
Route
POST /configuration_manager/configs/node/tasks
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
treeId |
string |
yes |
- |
version |
string |
yes |
- |
nodePath |
string |
yes |
- |
tasks |
array |
yes |
Tasks IDs to add |
Copied to Clipboard
{
"treeId": "5c35355dbebaa82eaf8113f0",
"version": "v3",
"nodePath": "base",
"tasks": [
"5f9700486aa2ad95d85fc973",
"5f9700486aa2ad95d85fc973"
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"treeId": {
"title": "treeId",
"$ref": "common#/definitions/mongoObjectId"
},
"version": {
"title": "version",
"$ref": "goldenConfigData#/definitions/goldenConfigTreeVersionName"
},
"nodePath": {
"title": "nodePath",
"$ref": "goldenConfigData#/definitions/goldenConfigNodePath"
},
"tasks": {
"title": "tasks",
"type": "array",
"items": {
"type": "string",
"title": "taskId",
"examples": [
"5f9700486aa2ad95d85fc973"
]
}
}
},
"required": [
"treeId",
"version",
"nodePath",
"tasks"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
updateNodeResult |
object |
- |
Copied to Clipboard
{
"status": "success",
"message": "Golden Config node updated"
}
Copied to Clipboard
{
"title": "updateNodeResult",
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "success"
},
"message": {
"type": "string",
"examples": [
"Golden Config node updated"
]
}
}
}