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": "EC463AFeaFfEE0bE3aE6ce06",
"createdBy": "C048b2ACaA684095Da9E8eC3",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "Ee5F1eD4fc04F3EAFe520B7B",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "ebBED6ECCC8e5e927dEa8e0F",
"name": "irure",
"description": "A user-defined object to help group documents."
},
{
"_id": "D3a4bDD72FBe44c2c64AEc7F",
"name": "voluptate sed dolore",
"description": "A user-defined object to help group documents."
},
{
"_id": "982537FD8AD3eE4e5BA12894",
"name": "eiusmod pariatur sed et irure",
"description": "A user-defined object to help group documents."
},
{
"_id": "b14700ad1abFECfBCAEcaB3E",
"name": "exercitation culpa incididunt",
"description": "A user-defined object to help group documents."
},
{
"_id": "76eBF109B45b030E84daF906",
"name": "esse commodo ex elit quis",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "labore et ex culpa nostrud"
}
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"
]
}