Summary
Creates a new template document.
Description
Creates a new template document.
Route
POST /automation-studio/templates
Roles
admin
apiwrite
designer
Parameters
DetailsExampleSchema
| Name |
Type |
Required |
Description |
| template |
object |
yes |
Template entity to create. |
Copied to Clipboard
{
"template": {
"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": "4FdD2cFdC8aF7Df1be6842cf",
"namespace": {
"type": "project",
"name": "ad eiusmod",
"accessControl": {
"read": [
"officia",
"sit ad nostrud Duis",
"pariatur",
"in ex ut eu sit"
],
"write": [
"est irure reprehenderit",
"Lorem in Ut adipisicing"
],
"execute": [
"nisi non cupidatat"
],
"manage": [
"dolore",
"velit anim exercitation minim",
"dolore aliqua Excepteur"
]
}
},
"createdBy": "f2a87B887fF0D11DCEFf8F4D",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "8cb2F5f2f9dBEa35CeD2C1f2",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "bC89AEEecE868C0B2CD0F21d",
"name": "cupidatat enim ea veniam"
},
{
"_id": "E06bCA82aA07CB660E8dcc4B",
"name": "eiusmod ipsum"
},
{
"_id": "EAB61A7eBbb8b1f022db0Ec1",
"name": "Excepteur sed consectetur voluptate ex"
},
{
"_id": "C0f1ca7C8EFEBC8d2CFC4FA6",
"name": "mollit consequat quis"
}
]
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"template": {
"title": "template",
"$ref": "template"
}
},
"required": [
"template"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| response |
object |
Created template and associated edit URI. |
Copied to Clipboard
{
"created": {
"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": "d7f6D632e19859BF5C047325",
"namespace": {
"type": "project",
"name": "est irure Lorem dolore consectetur",
"accessControl": {
"read": [
"dolor dolore mollit",
"aliquip laboris do nulla",
"ea"
],
"write": [
"Ut"
],
"execute": [
"mollit in in incididunt",
"Duis dolor",
"incididunt",
"Lorem eu sed occaecat dolor",
"in cupidatat"
],
"manage": [
"enim commodo culpa in et",
"dolore ipsum occaecat in minim",
"reprehenderit ut est quis ullamco",
"nostrud"
]
}
},
"createdBy": "fAFD3e1b898aFc9242a3ECf3",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "75eFC544f7D89Ae435c998b5",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "6f3533cDCe22EBCDba015fB4",
"name": "tempor"
},
{
"_id": "267faDD3Cd955304efF9F504",
"name": "laborum"
},
{
"_id": "1e59DcDfb908bD32eD36ca5c",
"name": "mollit"
},
{
"_id": "3b930B3665191FBbfBb5A410",
"name": "qui"
},
{
"_id": "F627b5BD5BcE0A7BC7A9A433",
"name": "dolore id"
}
]
},
"edit": "Ut cupidatat eu reprehenderit"
}
Copied to Clipboard
{
"title": "response",
"type": "object",
"description": "Created template and associated edit URI.",
"properties": {
"created": {
"$ref": "template"
},
"edit": {
"type": "string",
"description": "URI to the edit page for the newly created template."
}
},
"required": [
"created",
"edit"
]
}