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": "8521Db59aEe2866aEE31e333"
}
}
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": "dAA1eccfe46B0b33EbF0c25D",
"namespace": {
"type": "project",
"name": "magna tempor anim Excepteur",
"accessControl": {
"read": [
"occaecat est",
"Ut magna",
"Lorem consectetur adipisicing"
],
"write": [
"culpa aute irure eiusmod tempor",
"in",
"mollit",
"cupidatat enim dolore irure et"
],
"execute": [
"consequat do ex ea laborum",
"tempor occaecat est enim aliquip",
"Duis",
"fugiat est"
],
"manage": [
"non deserunt in anim veniam",
"cupidatat pariatur"
]
}
},
"createdBy": "7980C55D3CCeCfD7bCD4472C",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "c74AB266eDF5b881bc2C5920",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "0CF642b7D0B6AA0cc6FBd8fc",
"name": "dolore fugiat labore Excepteur aliqua"
},
{
"_id": "2F53Deb160156A6b1b3e4ab4",
"name": "in in ad in officia"
}
]
},
"edit": "ipsum et"
}
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"
]
}