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": "0E05De0C99f08D918ACd4E29"
}
}
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": "30cEf407CEaA8cc1A72dBA0f",
"namespace": {
"type": "project",
"name": "amet dolor non",
"accessControl": {
"read": [
"in occaecat sit ex aute",
"nisi Ut",
"ipsum laborum reprehenderit",
"fugiat Duis ad in officia",
"quis fugiat eiusmod sunt"
],
"write": [
"dolor adipisicing Excepteur ut"
],
"execute": [
"nostrud dolore ad enim reprehenderit"
],
"manage": [
"sunt labore ipsum cupidatat commodo",
"est nisi",
"enim aliquip sint",
"exercitation occaecat qui consectetur",
"id"
]
}
},
"createdBy": "7f8AF6a14884f3EfcFC580Ca",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "ca985b2c556221aA6ACd32a5",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "e74e92dF35AcdC808C69f1aD",
"name": "veniam aute mollit qui Excepteur"
},
{
"_id": "1Eb80CEEe0ec4Fd8C545F3Cf",
"name": "amet culpa"
}
]
},
"edit": "non"
}
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"
]
}