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": "f3192593fD63c6a1544FFA9D"
}
}
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": "A66750b7Fd4ee527CaE88FAA",
"namespace": {
"type": "project",
"name": "deserunt reprehenderit",
"accessControl": {
"read": [
"sint Ut"
],
"write": [
"elit commodo sint id",
"do",
"ut minim ea",
"qui ullamco do velit"
],
"execute": [
"pariatur non",
"laborum",
"voluptate in velit",
"velit ullamco laboris et nostrud",
"do eu"
],
"manage": [
"nisi esse irure",
"labore Duis ipsum nulla ut",
"aliqua nisi tempor in"
]
}
},
"createdBy": "EF4bb83c278b388cedF006C4",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "Fa0EdCd94C7DF6bE8cb1eAAf",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "6Dc5ea798a1cAA52025d9D0c",
"name": "consequat ut aliqua"
},
{
"_id": "B465bb0eAbFDc21a8D63750f",
"name": "ipsum consectetur sit"
}
]
},
"edit": "ut ea occaecat"
}
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"
]
}