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": "dDfbb70e101F5dEE9DcC47FD",
"createdBy": "BdEcbA27132CaB0d595bbd49",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "b3FA4c5fad3DeDe7390DF9f8",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "43838f25600838a84Ced46De",
"name": "aute cupidatat"
},
{
"_id": "bBfcF5CDDbACe6FE1fC8a801",
"name": "ex Lorem"
},
{
"_id": "2Bb2D9C4DA9af81fcFAbe63B",
"name": "deserunt proident"
},
{
"_id": "410D3Cc41d943e605CcceAF8",
"name": "sed"
},
{
"_id": "a32FE2cAa7685b0Fe4d10F67",
"name": "Duis ex"
}
]
}
}
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": "f5A33cC7bE8Ac466A701c8fd",
"createdBy": "0dAcBb5efbA61E8A6a3A2c87",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "89AaBFCF2cdEe58c896Aae1d",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "BdA7BF73CedbA6ffE9D0F6CD",
"name": "ipsum in dolor"
},
{
"_id": "78c2beaD57cFfdB6f4decF8f",
"name": "reprehenderit et"
},
{
"_id": "C10bE0a24E1c0CeEfCbc171A",
"name": "dolor"
},
{
"_id": "EEcF977732Ac6c875A2442C2",
"name": "labore laboris in"
},
{
"_id": "Ab5813Bd224AD2C5474EDF89",
"name": "tempor veniam"
}
]
},
"edit": "et"
}
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"
]
}