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": "FCFc01189b11BE0615e04c31",
"namespace": {
"type": "project",
"name": "et",
"accessControl": {
"read": [
"labore nisi mollit aute cupidatat",
"dolore fugiat proident"
],
"write": [
"nulla",
"ad ullamco eu nisi cillum"
],
"execute": [
"eu est culpa laboris exercitation",
"laborum",
"sit dolore laborum enim",
"est",
"Lorem"
],
"manage": [
"qui sed quis",
"cillum nulla enim"
]
}
},
"createdBy": "aBCc5aaA9Ad36fCBAbe8FaC7",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "FaEe0Eb492d2C4107f27c2F8",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "aE91A72bEF1B1da55C6674ff",
"name": "anim occaecat ipsum Duis"
},
{
"_id": "d4E11Ff51E5e49debA72c57F",
"name": "sunt cillum dolor"
},
{
"_id": "D8420d21DDadEC86A25c8FbC",
"name": "mollit eu nisi aute"
}
]
},
"edit": "culpa ullamco"
}
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"
]
}