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": "1d5EfCd83BB2bC5C45ABAe67"
}
}
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": "89e0fa3bdd6F888b395424B8",
"namespace": {
"type": "project",
"name": "Excepteur officia elit",
"accessControl": {
"read": [
"ut Excepteur consectetur",
"ut irure",
"incididunt ut"
],
"write": [
"in labore velit non dolor",
"commodo fugiat",
"ea Excepteur nisi sit pariatur",
"dolor aliquip velit",
"sit mollit nisi sint"
],
"execute": [
"est",
"quis fugiat id",
"pariatur dolore in sunt Lorem",
"amet laboris magna",
"deserunt ea sit"
],
"manage": [
"enim velit"
]
}
},
"createdBy": "fbC80e1dFDB7DD3fFeC43A5B",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "fdEb79BE12Df4abfF9FE891a",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "8B37aaC4eC19b9DBca9fB7CE",
"name": "sit elit adipisicing"
},
{
"_id": "256c25Aa365a3Ae4DDcd28e4",
"name": "anim"
}
]
},
"edit": "enim est culpa"
}
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"
]
}