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": "aAeE0c0D4D8df3EFdb39d3F0",
"namespace": {
"type": "project",
"name": "enim mollit",
"accessControl": {
"read": [
"fugiat in Ut ex sunt",
"pariatur tempor"
],
"write": [
"ullamco anim",
"esse",
"enim reprehenderit qui",
"dolore pariatur",
"occaecat magna ut"
],
"execute": [
"Lorem pariatur ut elit",
"dolore ut do",
"dolor magna irure Excepteur",
"sed elit magna",
"tempor nostrud ex"
],
"manage": [
"cupidatat mollit aliqua",
"Duis esse Lorem dolore Excepteur",
"sunt"
]
}
},
"createdBy": "A22a8Fda3bAe7D41201fBAEB",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "660e4dA6Bd743b8CD9dA6208",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "Dc252DA4D1C02f6AC0887f45",
"name": "eiusmod voluptate"
},
{
"_id": "BD83C7cDeE5b75a6F460Cf8c",
"name": "anim non aliqua dolor"
},
{
"_id": "A52A4c5373BcDbFc349BD223",
"name": "in minim ea"
}
]
}
}
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": "33611C9fc9BAC0136CdC2966",
"namespace": {
"type": "project",
"name": "sed",
"accessControl": {
"read": [
"eu ut tempor",
"officia consequat",
"in nulla elit laboris",
"culpa"
],
"write": [
"in ipsum ex exercitation",
"reprehenderit dolore ad sint consectetur",
"deserunt",
"sed"
],
"execute": [
"do Excepteur",
"aute voluptate consequat",
"occaecat fugiat aliqua est aute"
],
"manage": [
"elit Duis anim Lorem in",
"veniam mollit pariatur in",
"laboris in veniam ad deserunt",
"proident",
"anim"
]
}
},
"createdBy": "bfB8EEAEAb43c61b0CDDd021",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "4B8Fb14654C2EEEEf8Df0FfF",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "a2aBEAa7aDEfC9e63a6CdadC",
"name": "pariatur"
},
{
"_id": "28a44E2AF153CB7AFCFF866B",
"name": "occaecat"
},
{
"_id": "6E4FCd7098DBBB7d4B718269",
"name": "minim dolore"
},
{
"_id": "fCa6FB5A9EB0990137daFB74",
"name": "ea id"
}
]
},
"edit": "sed dolor proident"
}
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"
]
}