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": "3B2e2ac577Ab73eBBD80ac2c",
"namespace": {
"type": "project",
"name": "ea consectetur incididunt",
"accessControl": {
"read": [
"magna Ut"
],
"write": [
"tempor do aute",
"enim ea commodo deserunt Ut",
"Excepteur",
"sed qui exercitation nulla",
"dolore adipisicing"
],
"execute": [
"est",
"ut reprehenderit",
"mollit in commodo incididunt",
"tempor culpa dolore deserunt",
"enim minim"
],
"manage": [
"quis Ut",
"in et esse nostrud occaecat"
]
}
},
"createdBy": "BD5FCfb9c3AcAEDbC54EC910",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "151cCC3EF3a49fbB80306CF4",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "CB00452e1B20Ee6A7e4c5AFc",
"name": "labore ut"
},
{
"_id": "65eDE6ec4c35Cfe5EE15Fb3f",
"name": "pariatur nulla exercitation proident"
}
]
}
}
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": "7b7AdAA0B6e1010CCEFe5C20",
"namespace": {
"type": "project",
"name": "dolore sed",
"accessControl": {
"read": [
"ut",
"veniam nostrud culpa ea",
"quis in",
"eu id",
"Excepteur eu labore"
],
"write": [
"deserunt Excepteur proident eu eiusmod"
],
"execute": [
"reprehenderit ullamco qui minim laboris"
],
"manage": [
"officia laboris aliqua non anim",
"sit culpa"
]
}
},
"createdBy": "ee8568b48AddebC8d62210E5",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "F1ccb069Cda159A8Ce34b8BA",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "9FC0c3ca91f7f5267ecEB8Fa",
"name": "eu irure dolore"
},
{
"_id": "0Ba1E3bF41eAbd34D738AcBB",
"name": "ex ut sed"
},
{
"_id": "7DFDb07992EfCf2Bfc8cae6D",
"name": "in"
},
{
"_id": "9FBBDe65e44dC0744C6BA5f8",
"name": "minim ullamco sed"
},
{
"_id": "3E79BA0B05F5E06330818BaC",
"name": "cillum minim"
}
]
},
"edit": "incididunt dolore laboris"
}
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"
]
}