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": null
}
}
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": "f0d0FCf8D391Ef73ED200fA7",
"namespace": {
"type": "project",
"name": "est aliqua",
"accessControl": {
"read": [
"ipsum",
"consectetur aliquip officia Duis non",
"ipsum",
"magna dolor in laboris eu"
],
"write": [
"velit ex eu in qui",
"laboris cillum in",
"ea eu qui labore"
],
"execute": [
"deserunt est",
"laborum irure Duis"
],
"manage": [
"quis"
]
}
},
"createdBy": "Eb2CC56B466d84E6f6084D04",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "4796Fb83FF8B286DE78F614A",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "6ef3697acc04eAEAAA01C496",
"name": "Duis nulla Lorem"
},
{
"_id": "870F5FDeEaA4FEc28BDc29f3",
"name": "cupidatat velit"
}
]
},
"edit": "voluptate enim Lorem"
}
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"
]
}