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": "E2cA818ECAdCaCDD8cB3Caf8"
}
}
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": "FEA63623f852c0E16BDC7b03",
"namespace": {
"type": "project",
"name": "laborum dolor",
"accessControl": {
"read": [
"dolor et ullamco cupidatat veniam",
"in dolore"
],
"write": [
"ullamco amet",
"Lorem officia est in ullamco",
"proident",
"occaecat sit"
],
"execute": [
"ut exercitation velit elit",
"ut nulla in",
"officia qui",
"laborum quis"
],
"manage": [
"consectetur aute nisi ea esse",
"nulla Lorem nisi",
"exercitation",
"labore ex ut irure aliqua",
"in voluptate magna ex culpa"
]
}
},
"createdBy": "cdF6cAD404F63Ba8cCfAd6D8",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "48038B6CfD89A40DEFef2D73",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "fF3F318F472dDd0ac58Ffd4F",
"name": "qui minim aute sunt"
},
{
"_id": "dC243Abab86f2BDafB39DD29",
"name": "reprehenderit elit deserunt"
},
{
"_id": "AfFCc1aA5B2cB7fdb89Fe9eE",
"name": "id"
},
{
"_id": "4BDe076c0Ea37FAC4Ef0eAEc",
"name": "culpa do ut non"
}
]
},
"edit": "dolor sunt aute consequat deserunt"
}
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"
]
}