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": "FA78B355D2F1FdeE4458feaD",
"createdBy": "6cB7E8c9243a539DDa711Cd8",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "bc1B3ce2Cd71CE0a1d9c1C7f",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "bcb6e0ADC386eDc20dDD3cfc",
"name": "ipsum aliqua"
}
]
}
}
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": "8e2Db7CbF9A2aD1EacF3f11b",
"createdBy": "6ea2fD5940a0a881C1eDF9cC",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "30d94326AEA4a0d752AeB1a5",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "A9A48fE1ecd73A3588eCC9CF",
"name": "dolor aliqua velit"
},
{
"_id": "Ac96b2761ed34fD3eDAac5b5",
"name": "ut eiusmod fugiat magna"
},
{
"_id": "cE10c4aFfD3f259dff0AE5f7",
"name": "in nulla et commodo sed"
},
{
"_id": "7690C7c97A6ddBFFb1621033",
"name": "in ea ut minim"
}
]
},
"edit": "Ut"
}
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"
]
}