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": "1CfBc6f01314CafC1cE8CB6f",
"namespace": {
"type": "project",
"name": "magna consequat aliquip sed",
"accessControl": {
"read": [
"officia nulla",
"consequat"
],
"write": [
"ex non nulla dolore deserunt"
],
"execute": [
"adipisicing",
"sint sit",
"consequat sed"
],
"manage": [
"sed aute in nostrud incididunt"
]
}
},
"createdBy": "Ab1915D9D80e6DD78dAa3555",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "1cb4a7c95696dd7F18eeFECb",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "b922CAbBce91BaED1b9b8477",
"name": "dolor"
},
{
"_id": "AeCc93D4bc4fE85C5324c0Eb",
"name": "mollit dolor"
}
]
}
}
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": "45D3A6F30D3C044920Fed9Fb",
"namespace": {
"type": "project",
"name": "aute irure qui velit",
"accessControl": {
"read": [
"incididunt ut non voluptate Excepteur",
"dolore occaecat officia sint Ut",
"nulla irure in non",
"irure et",
"tempor sint laboris quis"
],
"write": [
"tempor ut ex occaecat labore",
"occaecat Duis non adipisicing dolore",
"in nostrud",
"labore elit veniam"
],
"execute": [
"deserunt ut"
],
"manage": [
"eiusmod esse ut occaecat est"
]
}
},
"createdBy": "febB929e32Cf8Cc2617afb6F",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "6D6aDf009ADDf7EFDBcDAaB7",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "491435FbBc3Fa593D7551A5F",
"name": "incididunt nisi qui elit dolor"
},
{
"_id": "b7ce1fA49d4cEe2c8D8A8A7a",
"name": "Duis proident eiusmod incididunt Lorem"
}
]
},
"edit": "consectetur enim fugiat pariatur"
}
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"
]
}