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",
"projectId": null
}
}
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": "bA4D6401dDbE535A1afBeB71",
"namespace": {
"type": "project",
"name": "ut Ut ex labore culpa",
"accessControl": {
"read": [
"et",
"occaecat sint ex exercitation",
"minim magna",
"aliquip in Ut ipsum",
"amet"
],
"write": [
"reprehenderit",
"eiusmod sint",
"consequat dolore laborum cillum",
"veniam ea do dolor voluptate"
],
"execute": [
"velit tempor Lorem culpa",
"incididunt minim culpa officia deserunt",
"amet sunt",
"deserunt id culpa"
],
"manage": [
"incididunt",
"enim ut elit sit sint"
]
}
},
"createdBy": "c487dfdDFeD03FeEB746c8F8",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "27FecD2B954DB86DDDCc8117",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "ECe651E611c376FfF0867BF5",
"name": "consequat magna"
}
]
},
"edit": "do dolore sit ea minim"
}
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"
]
}