Summary
Updates a device template
Description
Updates a new device template in pronghorn
Route
PUT /configuration_manager/templates
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
Device Template's id |
data |
object |
yes |
Configuration template data to update. |
options |
object |
yes |
Additional parameters (optional) |
Copied to Clipboard
{
"id": "5c35355dbebaa82eaf8113f0",
"data": {
"template": "esse",
"name": "Excepteur"
},
"options": {
"deviceOSTypes": []
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"id": {
"title": "id",
"$ref": "common#/definitions/mongoObjectId"
},
"data": {
"title": "data",
"properties": {
"template": {
"type": "string",
"example": "ntp server {{ ipAddress }}"
},
"variables": {
"type": "object",
"example": "{ \"ipAddress\": \"1.2.3.4\" }"
},
"name": {
"type": "string",
"example": "NTP Server Template"
}
}
},
"options": {
"title": "options",
"type": "object",
"properties": {
"deviceOSTypes": {
"type": "array"
}
}
}
},
"required": [
"id",
"data",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
object |
Result of creating a new device template |
Copied to Clipboard
{
"status": "mollit",
"updated": 27985692.945025116
}
Copied to Clipboard
{
"title": "data",
"properties": {
"status": {
"type": "string",
"example": "success"
},
"updated": {
"type": "number",
"example": 2
}
}
}