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": "2FFC2bace1Cd72D6A494a466",
"createdBy": "A3bB9eC5d6d6Ee66Fb3b5a96",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "8Bfdee101b7BD40400de59BF",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "5a889A0ae73df110cf30499B",
"name": "Excepteur ipsum proident sunt"
},
{
"_id": "85464536B923f4e8AC9aaABf",
"name": "commodo Ut anim dolore"
},
{
"_id": "434Ef9CA5bBD960dB9Cdbb3a",
"name": "sed Duis ipsum"
}
]
}
}
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": "A8Fb2d2BC86B97Aa0E34E46A",
"createdBy": "1B05daaA365C459B12DeBfe4",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "53Dcf39bCBcE7B93DeDfd9DA",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "654F70bfdbEfb2e0AbC465a0",
"name": "est ea"
},
{
"_id": "eb9Eea36caAfecBFDE1a49Ab",
"name": "dolore exercitation"
},
{
"_id": "E53f3Fb7A5ac5B26bBF90A7c",
"name": "labore laborum aliquip dolore"
}
]
},
"edit": "voluptate id culpa"
}
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"
]
}