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": "f1B8b7795bfF9338fa85c767"
}
}
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": "38D251eFFD7B1a30ACEE25ac",
"namespace": {
"type": "project",
"name": "pariatur ad in in elit",
"accessControl": {
"read": [
"non laboris ut irure"
],
"write": [
"reprehenderit sint",
"dolore"
],
"execute": [
"Ut Duis adipisicing",
"dolore est labore ut",
"Ut officia",
"Lorem laboris non",
"Excepteur adipisicing"
],
"manage": [
"consectetur id minim et",
"aliquip dolore",
"mollit irure sint incididunt cillum",
"aliqua veniam qui consequat",
"ut est quis culpa et"
]
}
},
"createdBy": "ffA35aaF449538f000dacD3D",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "eF0AE5B02edeBBcccdAB5DA7",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "49cDdF6FD059fB5FdF3dab1d",
"name": "in irure magna Excepteur"
}
]
},
"edit": "velit"
}
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"
]
}