Summary
Alters a device configuration
Description
Apply specified changes to a device configuration
Route
POST /configuration_manager/patch_device/:deviceName
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
deviceName |
string |
yes |
- |
changes |
array |
yes |
- |
Copied to Clipboard
{
"changes": [
{
"parents": [
"parent line of config"
],
"old": "old config line",
"new": "new config line"
}
]
}
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
DetailsExampleSchema
Name |
Type |
Description |
patchResult |
object |
Direct reponse from the origin's adapter |
Copied to Clipboard
{
"response": [
{
"result": true,
"parents": [
"magna eu ullamco incididunt cillum",
"consequat dolor anim ut",
"in",
"veniam Duis"
],
"new": "elit mollit esse",
"old": "voluptate et"
},
{
"result": true,
"parents": [
"incididunt",
"adipisicing aliqua",
"qui irure",
"proident ipsum cupidatat",
"aliquip"
],
"new": "consectetur elit sunt et",
"old": "in officia cillum"
},
{
"result": false,
"parents": [
"ex",
"Excepteur minim elit",
"id velit nisi eu dolor"
],
"new": "laborum",
"old": "esse sed ad"
},
{
"result": false,
"parents": [
"magna fugiat",
"cupidatat velit Ut deserunt",
"adipisicing pariatur ut occaecat esse",
"in mollit eu elit"
],
"new": "veniam",
"old": "labore consectetur officia"
},
{
"result": false,
"parents": [
"laborum sit amet officia culpa",
"adipisicing voluptate",
"dolore Duis fugiat adipisicing"
],
"new": "commodo consequat mollit dolor",
"old": "incididunt reprehenderit aliqua"
}
]
}
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"
}
}
}
}
}
}