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": "B8cb8Bd09ABFcAa55A0cbA0B",
"namespace": {
"type": "project",
"name": "sunt magna fugiat qui",
"accessControl": {
"read": [
"eu Excepteur do officia quis",
"ex aute ad adipisicing commodo"
],
"write": [
"in",
"velit occaecat in dolor Lorem",
"ipsum consequat voluptate reprehenderit"
],
"execute": [
"magna ullamco sit"
],
"manage": [
"esse Excepteur enim ex"
]
}
},
"createdBy": "adCdACB1F2eEc40B57ec8b9c",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "B3c85c00e43b9fdB1AF4C78D",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "4dB76FA85891734cfe2bD02E",
"name": "dolore qui"
}
]
}
}
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": "BAad2aB630BC4db3f333F5b6",
"namespace": {
"type": "project",
"name": "ex",
"accessControl": {
"read": [
"anim",
"in magna est",
"eu in adipisicing sed",
"Ut pariatur",
"Lorem adipisicing cupidatat nulla do"
],
"write": [
"aute cillum in nostrud adipisicing"
],
"execute": [
"sit exercitation",
"officia ipsum",
"nostrud ullamco id",
"aute sed ullamco"
],
"manage": [
"esse"
]
}
},
"createdBy": "E0a195ac6B402be6053dd0ee",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "29Cf0DBf499bc0CC8Df8015E",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "9D1e4585cfF58b8d6fDEbC9e",
"name": "eu"
},
{
"_id": "8a85c9AF5B5bd4abB259BAEb",
"name": "incididunt laborum deserunt ut"
},
{
"_id": "dbC798B60F6bdAAfD018dd24",
"name": "est esse"
},
{
"_id": "dF9fCa9F14AeB4c9dbdE62Ad",
"name": "nostrud Excepteur in eu"
},
{
"_id": "4Cdf8C29ee8DDc4dF1CdDA50",
"name": "Excepteur do nisi aliquip"
}
]
},
"edit": "commodo"
}
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"
]
}