Summary
Update a Config Spec.
Description
Update content of the Config Spec.
Route
PUT /configuration_manager/config_specs/:id
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
- |
data |
object |
yes |
- |
Copied to Clipboard
{
"data": {
"template": "ntp server {{ ipAddress }}",
"variables": "{ \"ipAddress\": \"128.31.1.3\"}"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"data": {
"title": "data",
"type": "object",
"properties": {
"template": {
"type": "string",
"examples": [
"ntp server {{ ipAddress }}"
]
},
"variables": {
"type": "string",
"examples": [
"{ \"ipAddress\": \"128.31.1.3\"}"
]
}
}
}
},
"required": [
"data"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
configSpecUpdateResult |
object |
- |
Copied to Clipboard
{
"status": "success",
"message": "Config Spec updated"
}
Copied to Clipboard
{
"title": "configSpecUpdateResult",
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "success"
},
"message": {
"type": "string",
"examples": [
"Config Spec updated"
]
}
}
}