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": "Bdb49FBEFaC2FE7eB0eE376C",
"createdBy": "e958c059AAA3356F5AF9D5bd",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "9E07AF1cDAef6c2EE9edb034",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "5fe8BFCFe6bd9bdD55FD3fb4",
"name": "sunt eu ullamco eiusmod veniam"
},
{
"_id": "CbECfed4c992eeaF4b4baFf1",
"name": "in irure nisi consectetur"
}
]
}
}
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": "a7DF7DCb0eDBCd3953b4fF39",
"createdBy": "cA9ACD561e03Ed2CEdB21a3e",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "b984eCad3195e6fD590eE443",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "BBc75277b53b9E4a4db7b2e3",
"name": "in proident voluptate magna"
},
{
"_id": "afCcAea2289D8C11CBfe51E2",
"name": "cupidatat"
},
{
"_id": "FBBef05AAd4A60069e68508A",
"name": "Lorem"
},
{
"_id": "e53cDeeb32E6EfCb7d8C8ab1",
"name": "ullamco laboris sint"
}
]
},
"edit": "in"
}
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"
]
}