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": "8Bb4cE1E44AB42Fa1CcDf88e",
"namespace": {
"type": "project",
"name": "labore minim ea fugiat",
"accessControl": {
"read": [
"qui occaecat ut",
"commodo qui",
"sunt nisi consequat",
"in quis esse amet"
],
"write": [
"consequat labore quis adipisicing sed",
"officia nulla commodo",
"in",
"et in consectetur",
"consectetur pariatur"
],
"execute": [
"reprehenderit dolor pariatur velit labore",
"deserunt eiusmod",
"incididunt proident cillum",
"fugiat"
],
"manage": [
"dolor eiusmod",
"quis consequat id adipisicing",
"Excepteur"
]
}
},
"createdBy": "77afc6dddEEdD646ac31E4c3",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "EB4a5AaAFeb9612b7e3F6f4c",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "c90b0344dA5863F0de1ef8De",
"name": "officia dolore commodo et"
},
{
"_id": "aDeAbD0cd4651aD0df7b6F04",
"name": "est incididunt ad quis"
},
{
"_id": "2a5EbDDb3Ea51AEa3E3076D2",
"name": "elit ut 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": "54A50E81e1181862EeB0Dc09",
"namespace": {
"type": "project",
"name": "sit",
"accessControl": {
"read": [
"ut",
"ullamco dolor elit est"
],
"write": [
"ullamco consectetur anim labore officia",
"laboris"
],
"execute": [
"in",
"aliquip",
"ad esse anim"
],
"manage": [
"aute"
]
}
},
"createdBy": "fcDcD7AA15B01eb37d6bddBf",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "B799BdDB26028CeE72E3B9fD",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "6bbB47dEA604a1B2B4c105Cc",
"name": "sint Excepteur"
},
{
"_id": "BE40ecA3C72c11FBe76BDEcc",
"name": "cillum"
},
{
"_id": "fecA0E71B3DdD3fad893574E",
"name": "ut culpa sit"
}
]
},
"edit": "mollit in"
}
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"
]
}