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": "0CD1cc58bF9A4bDAA25D81EA",
"createdBy": "BBf2651bf71a3F320b8ffc5e",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "fE7BBAA959aBfB27cE67ACBf",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "A4Df51A15Abe9AbD6e42b67E",
"name": "tempor laboris exercitation qui",
"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": "b60dEbfD234B3CA74d5f559C",
"createdBy": "de7e228038DfBe0297b9bfb2",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "06CF43dBe0C0Adf17e1baF26",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "495bCE143af11F92c3C8518A",
"name": "pariatur reprehenderit",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "laborum tempor"
}
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"
]
}