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": "2aB6Ff6CA0d6b8d009cE4A0c",
"createdBy": "1Fe19cBCF7cFAAb4bAC941b0",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "A2B1ca64b275f9C3a5832F6d",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "BeebdeDCCC9c1FA2f44DCA78",
"name": "magna aliqua",
"description": "A user-defined object to help group documents."
},
{
"_id": "a4E4E65Daa7cAaaecD7Ef0D4",
"name": "laboris deserunt dolor veniam",
"description": "A user-defined object to help group documents."
},
{
"_id": "aC1a8EFFc4DAB0f1191De99a",
"name": "aliquip commodo minim ex",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "enim labore proident qui fugiat"
}
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"
]
}