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": "b1Cc04e6a61fd0b05da8CDaF",
"namespace": {
"type": "project",
"name": "nostrud culpa laboris ad quis",
"accessControl": {
"read": [
"cillum ex quis"
],
"write": [
"nostrud qui ea eu voluptate",
"sit commodo aliqua dolore"
],
"execute": [
"amet"
],
"manage": [
"Excepteur enim dolore sint",
"consectetur sint"
]
}
},
"createdBy": "027Ac0e48d10f0BdcbDbBe4C",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "8CE331D67E8FfD28Eb8A80aC",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "6B3Aa1A03c6CF0e817C4ffD0",
"name": "tempor"
},
{
"_id": "6EAF658fE555a96eC8CBCe78",
"name": "reprehenderit"
},
{
"_id": "C430eAbdE10095e4edc3f6EC",
"name": "dolor dolore ut nulla laborum"
}
]
}
}
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": "25EE2CdD13BC1FdEBF1a97B0",
"namespace": {
"type": "project",
"name": "mollit Lorem minim",
"accessControl": {
"read": [
"culpa"
],
"write": [
"ut non",
"fugiat labore culpa nostrud",
"minim velit",
"amet anim sed",
"enim nostrud Excepteur velit consequat"
],
"execute": [
"occaecat dolore incididunt"
],
"manage": [
"et eiusmod",
"exercitation eu Duis nisi dolore",
"consectetur exercitation Duis"
]
}
},
"createdBy": "59CBfD9AD73EA1B7dEea06fA",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "6aCaa8439Ebf0f44f8fcF918",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "5E82EdCBFf05b812cdfC7ceD",
"name": "in sed"
}
]
},
"edit": "ea proident eiusmod cillum"
}
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"
]
}