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": "3F28afAaA5eB7ADBabdB9815",
"createdBy": "4Bd62E98e6DB4FA6e0DE0Dbe",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "5F2f5ca7dAf7D3a641c29eb6",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "f0Df9ee0853B6061Cfd17EB3",
"name": "nulla",
"description": "A user-defined object to help group documents."
},
{
"_id": "6CFb00D30AbF38e58Df2CcEf",
"name": "ullamco do",
"description": "A user-defined object to help group documents."
},
{
"_id": "779DBe8cEA77DDdD1ACCf5bf",
"name": "et Duis nostrud non",
"description": "A user-defined object to help group documents."
}
]
}
}
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": "3b1BD142f7B5E1c4f55bafCD",
"createdBy": "732c5Ec45cFD866FA5BeAa67",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "50d13dCAdD3cEF4b2E35AEB4",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "Bc16E4Ed51Baaf97fa54Fb8b",
"name": "ut et mollit Lorem aliquip",
"description": "A user-defined object to help group documents."
},
{
"_id": "D7c93664D1C6806AD1370DEB",
"name": "Lorem Duis",
"description": "A user-defined object to help group documents."
},
{
"_id": "d1a69b6cAeD4CfAbfAe0FD5b",
"name": "sunt enim anim",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "eiusmod et"
}
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"
]
}