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": "B8EDC0A2b3F4EDfBEEd3021e",
"namespace": {
"type": "project",
"name": "in ut labore",
"accessControl": {
"read": [
"cupidatat in sit fugiat",
"mollit magna sed adipisicing ut",
"magna",
"pariatur dolor anim veniam"
],
"write": [
"laboris eu reprehenderit in",
"in sunt voluptate Excepteur",
"in sunt ea deserunt",
"magna tempor",
"commodo nulla qui Duis nostrud"
],
"execute": [
"et aute quis tempor",
"anim do et",
"ut qui exercitation ea"
],
"manage": [
"pariatur in"
]
}
},
"createdBy": "05DE8Bc374983fCfF9B67891",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "57C3aaff94A6d5FeFDeD07b2",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "Db22248CbBAdFC7bB6Cc646f",
"name": "ad"
},
{
"_id": "8FB7d7DB4fB3Bf8557154e6C",
"name": "cupidatat occaecat culpa proident"
}
]
},
"edit": "enim"
}
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"
]
}