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": "b6aCb31C0A028Fe51cAcb24c",
"createdBy": "f400D9FAdab6994BeEDED31f",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "e114e18dEcEF9AAF9da0eed1",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "398E0aE9Dc0164CD5B6eDdc9",
"name": "in",
"description": "A user-defined object to help group documents."
},
{
"_id": "3e94f8F7A2304010EF46b25E",
"name": "dolore",
"description": "A user-defined object to help group documents."
},
{
"_id": "da6b3E7e2AE864f5aBE8bAED",
"name": "dolor exercitation dolore",
"description": "A user-defined object to help group documents."
},
{
"_id": "afDfAfF64e27bA4d4F67855c",
"name": "tempor in aliquip",
"description": "A user-defined object to help group documents."
},
{
"_id": "b7d15Da2E4C2Fc135A98bbD5",
"name": "ex enim adipisicing",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "dolor"
}
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"
]
}