Summary
Alters a device configuration
Description
Apply specified changes to a device configuration
Route
POST /configuration_manager/patch_device/:deviceName
Roles
admin
apiwrite
Parameters
Details Example Schema
Name
Type
Required
Description
deviceName
string
yes
-
changes
array
yes
-
Copied to Clipboard
{
"changes": [
{
"parents": [
"parent line of config",
"parent line of config",
"parent line of config",
"parent line of config",
"parent line of config"
],
"old": null,
"new": null
},
{
"parents": [
"parent line of config",
"parent line of config",
"parent line of config",
"parent line of config"
],
"old": null,
"new": null
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"changes": {
"title": "changes",
"type": "array",
"items": {
"type": "object",
"properties": {
"parents": {
"type": "array",
"items": {
"type": "string",
"examples": [
"parent line of config"
]
}
},
"old": {
"anyOf": [
{
"const": null
},
{
"type": "string"
}
],
"examples": [
"old config line",
null
]
},
"new": {
"anyOf": [
{
"const": null
},
{
"type": "string"
}
],
"examples": [
"new config line",
null
]
}
}
}
}
},
"required": [
"changes"
],
"additionalProperties": false
}
Return
Details Example Schema
Name
Type
Description
patchResult
object
Direct reponse from the origin's adapter
Copied to Clipboard
{
"response": [
{
"result": false,
"parents": [
"sed consequat",
"occaecat proident aliqua id exercitation"
],
"new": "exercitation consectetur enim sunt in",
"old": "fugiat aliquip"
},
{
"result": false,
"parents": [
"in fugiat"
],
"new": "dolore commodo eu",
"old": "exercitation"
},
{
"result": false,
"parents": [
"ullamco cillum eiusmod velit voluptate",
"cupidatat Ut sit est",
"dolore cupidatat sint nulla",
"in exercitation ipsum laboris"
],
"new": "id consectetur in aliquip",
"old": "est"
},
{
"result": true,
"parents": [
"eu nulla incididunt",
"eu",
"aliqua",
"tempor",
"deserunt ut voluptate"
],
"new": "sunt",
"old": "est sed exercitation Lorem minim"
}
]
}
Copied to Clipboard
{
"title": "patchResult",
"type": "object",
"properties": {
"response": {
"type": "array",
"items": {
"type": "object",
"properties": {
"result": {
"type": "boolean"
},
"parents": {
"type": "array",
"items": {
"type": "string"
}
},
"new": {
"type": "string"
},
"old": {
"type": "string"
}
}
}
}
}
}