Complete template definition to replace the existing template document with. May not contain fields '_id', 'workflowId', 'created', 'createdBy', 'lastUpdated', or 'lastUpdatedBy'.
Copied to Clipboard
{
"update": {
"name": "test",
"group": "Sample group",
"command": "show ip br",
"description": "description",
"template": "Value FIRST_WORD (S+)\n\nStart\n ^FIRST_WORD.* -> Record",
"data": "some sample text to match against",
"type": "test"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"update": {
"title": "update",
"description": "Complete template definition to replace the existing template document with. May not contain fields '_id', 'workflowId', 'created', 'createdBy', 'lastUpdated', or 'lastUpdatedBy'.",
"$ref": "templateUpdate"
}
},
"required": [
"update"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name
Type
Description
response
object
Response object.
Copied to Clipboard
{
"updated": {
"name": "test",
"group": "Sample group",
"command": "show ip br",
"description": "description",
"template": "Value FIRST_WORD (S+)\n\nStart\n ^FIRST_WORD.* -> Record",
"data": "some sample text to match against",
"type": "test",
"_id": "cfFeAad28D0Bf95Dca49Ce78",
"createdBy": "68D13Cd091bBd690cc94fe99",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "D4D0FFc7B8dBEBbCF5895dfB",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "7ead1289DbDF5fa84eaEd781",
"name": "Duis",
"description": "A user-defined object to help group documents."
},
{
"_id": "7CEC465c82E1f1de979B1EB3",
"name": "aliqua ullamco",
"description": "A user-defined object to help group documents."
},
{
"_id": "b22DAe0e0a93C197d6cb09c0",
"name": "cupidatat Duis qui nisi",
"description": "A user-defined object to help group documents."
},
{
"_id": "f958FcbbcAc8936bfF3bf1aB",
"name": "sunt incididunt in do nostrud",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "sunt"
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"properties": {
"updated": {
"description": "Template document after applying the update.",
"$ref": "template"
},
"edit": {
"type": "string",
"description": "URI to the edit page for the updated template."
}
},
"required": [
"updated",
"edit"
]
}