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": "ac9F51cfB3Ba32edDc67E267",
"createdBy": "B89abF5EA97cE3e2fbB206FC",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "cac7fC1AfC53eEB4f1B8d17F",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "462F07ab580dB19ae9D06d49",
"name": "nisi in dolor proident sed"
}
]
}
}
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": "36f4A34eD93093d6ec37fA88",
"createdBy": "C44ef2E571a3DC6eEBA60DEA",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "bc00BDca8EcF53Ebf73cD620",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "D1C8dDDAB325Fe6A3727ce3A",
"name": "pariatur minim dolore elit"
},
{
"_id": "7ea41D24deAfBC6395ce520d",
"name": "ut"
},
{
"_id": "89C3286070bFf448Cb5E2c16",
"name": "qui incididunt velit"
}
]
},
"edit": "elit pariatur cillum dolore sit"
}
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"
]
}