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": "3ceB6887Ef5Ab891Cf5B1ed1",
"namespace": {
"type": "project",
"name": "dolor Lorem magna dolore",
"accessControl": {
"read": [
"minim",
"enim adipisicing aliquip Duis voluptate",
"sunt sit"
],
"write": [
"quis eiusmod",
"in ut et",
"veniam",
"veniam adipisicing nostrud",
"laborum aliquip dolore ex Lorem"
],
"execute": [
"magna ex culpa"
],
"manage": [
"ullamco",
"amet consequat tempor"
]
}
},
"createdBy": "6531dD6A7E691F16a4Dda3eF",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "CbE0dEEF16A3A0667AFa0054",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "305f1bAFeFe87CFaA6d89552",
"name": "reprehenderit dolore consequat tempor"
},
{
"_id": "Fce1f226B5A8F8a5c1BdD95c",
"name": "culpa mollit"
},
{
"_id": "ef0eAD1EfDFB7cd418Ea59bc",
"name": "sit"
},
{
"_id": "9ce376fFCEC259Ca72675adD",
"name": "elit"
},
{
"_id": "cCFE9f2aE0245A28C307e0Fa",
"name": "aliqua nostrud ipsum eiusmod pariatur"
}
]
}
}
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": "3DFD9cD7B5c062aFa7dD7afe",
"namespace": {
"type": "project",
"name": "amet dolor",
"accessControl": {
"read": [
"adipisicing reprehenderit ut non exercitation",
"amet dolore eu ipsum Lorem"
],
"write": [
"esse sit ullamco"
],
"execute": [
"irure non nisi et id",
"sint adipisicing non tempor aliqua"
],
"manage": [
"amet sunt eu qui",
"Duis",
"pariatur minim in adipisicing"
]
}
},
"createdBy": "E2feCcc3C8dB2aEdB5a7d7aa",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "7DD04bC8E6Bed35A03fa06e1",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "5Cb8CC35eeA5b0aE6635b24B",
"name": "ad cillum ut Excepteur"
},
{
"_id": "0dCF8b3Fbc817cCD31E9Ea0F",
"name": "commodo ea"
},
{
"_id": "ee2eFf62E9d1C7e0AE5cECfB",
"name": "esse qui incididunt proident aute"
}
]
},
"edit": "et in Ut"
}
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"
]
}