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": "959f3A1180DcE84EbFA1e2f5",
"createdBy": "ABc8F76b1bCb7bD9DaFf3083",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "B5f71Ffcec613bC6Da55D904",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "bdA2fDc38Da39a4D25Ee4aDb",
"name": "mollit esse sit"
},
{
"_id": "E0E4C3f68fa4ad04D501007F",
"name": "labore"
},
{
"_id": "a9Fe9d5257B1e7EB7C9485C4",
"name": "enim et mollit"
},
{
"_id": "aFcfDcaF8Fbc2C28AE1C0Eae",
"name": "Duis do"
}
]
}
}
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": "eBD4884DE61dcEaD173dee3f",
"createdBy": "2cfE807D163e1E51fdc0C8bb",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "8190F1c06686Ffe0DEA6d92F",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "f00f47AFEcED9FaBef9f80D9",
"name": "aute et dolor"
},
{
"_id": "2CFD567E78BceA41f0709dE1",
"name": "Lorem"
},
{
"_id": "5FaecDa2f5faE5fC617B0afa",
"name": "commodo laborum sint tempor culpa"
},
{
"_id": "Ed00c4C4ff3C3CBDe3ec0A4F",
"name": "ex officia eiusmod"
},
{
"_id": "fc122f13Bcdae82AC78F2b91",
"name": "Ut nostrud"
}
]
},
"edit": "non ea nostrud do Excepteur"
}
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"
]
}