Summary
Alters a device configuration
Description
Apply specified changes to a device configuration with additional options
Route
POST /configuration_manager/patch_device/advanced/:deviceName
Roles
admin
apiwrite
Parameters
Details Example Schema
Name
Type
Required
Description
deviceName
string
yes
-
changes
array
yes
-
options
object
yes
Additional parameters (optional)
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": "new config line"
},
{
"parents": [
"parent line of config"
],
"old": "old config line",
"new": null
}
],
"options": {
"backupDevice": true
}
}
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
]
}
}
}
},
"options": {
"title": "options",
"type": "object",
"properties": {
"backupDevice": {
"type": "boolean"
}
}
}
},
"required": [
"changes",
"options"
],
"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": [
"nulla dolor ut"
],
"new": "laborum adipisicing Ut ut exercitation",
"old": "ipsum anim laboris ullamco"
},
{
"result": true,
"parents": [
"qui ut dolor in",
"fugiat ut",
"sed cillum voluptate dolor laborum",
"non ut"
],
"new": "amet fugiat aute ut",
"old": "in"
},
{
"result": true,
"parents": [
"in ad est",
"dolore"
],
"new": "Duis dolor",
"old": "Duis aute"
},
{
"result": true,
"parents": [
"exercitation aliquip fugiat deserunt",
"Ut ex officia ad",
"adipisicing",
"dolore ullamco quis et",
"officia dolore"
],
"new": "laborum",
"old": "occaecat nisi anim pariatur fugiat"
},
{
"result": false,
"parents": [
"in dolor",
"mollit sint ex",
"enim deserunt",
"tempor aliquip exercitation qui",
"Duis aliquip minim"
],
"new": "consectetur pariatur cillum",
"old": "ut adipisicing laborum nisi"
}
]
}
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"
}
}
}
}
}
}