Summary
Exports a template document.
Description
Exports a template document.
Route
GET /automation-studio/templates/:id/export
Roles
admin
apiwrite
designer
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
Template id. |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
exported |
object |
Exported representation of the template. |
Copied to Clipboard
{
"_id": "9053ec5020ab9de42a143472",
"name": "test",
"device": "Sample group",
"command": "show ip br",
"template": "Value FIRST_WORD (S+)\n\nStart\n ^FIRST_WORD.* -> Record",
"text": "some sample text to match against",
"type": "test",
"projectId": null,
"createdBy": "fded28c3de29405e519ecbc6",
"created": "2019-11-25T22:51:39.201Z",
"lastModifiedBy": "5f28ee1aa2b4b30e9beba0a1",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "2b9973b93c91b8d5a8b5a8a0",
"name": "nostrud Lorem fugiat officia minim"
},
{
"_id": "ce1f0c692ee99bdbdbad696a",
"name": "non reprehenderit mollit ea"
},
{
"_id": "87a46d755939ca1895a16a86",
"name": "veniam culpa enim"
}
]
}