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": "BF6993b7aC42A11A8b3C61B8"
}
}
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": "2f8F84f769F985B8b36Aa382",
"namespace": {
"type": "project",
"name": "Duis ea sunt",
"accessControl": {
"read": [
"nulla in dolore nisi ex",
"cillum",
"laboris adipisicing dolor et ut"
],
"write": [
"ea Duis nulla in cupidatat"
],
"execute": [
"nisi dolore reprehenderit qui Duis",
"laboris tempor sed magna sit"
],
"manage": [
"esse enim ipsum"
]
}
},
"createdBy": "CE03BFD4ab9AE9c6a96BB702",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "53f281A29E9D1eAe75096F02",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "7353170d8FDDEF7E8f2a19A5",
"name": "culpa sunt"
},
{
"_id": "AFa6C0AC0De2ddc52F0fb34a",
"name": "occaecat mollit ea"
},
{
"_id": "5df6af15AbF80dBbf451De75",
"name": "nulla"
},
{
"_id": "1ef6E693ea9aAefC4D45C599",
"name": "culpa in"
}
]
},
"edit": "cupidatat dolore"
}
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"
]
}