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": "88Cd9b1F3dc6Ec2D6b6ebDcd",
"createdBy": "431D3b5F1761bE3Fd051E642",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "1FE5fA902864bbF6EeeabDDd",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "80ac2A1b6AbAEDAFcEF9DE15",
"name": "mollit est incididunt sit"
},
{
"_id": "0bbAE9C5af0329c5B5BAFf3c",
"name": "eiusmod nulla laborum"
}
]
}
}
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": "ecDCf30D53c4EafDF3Bb817d",
"createdBy": "5cae9EdEd298deCC7a702253",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "CACeC7cA5CddfBD5622A0EE0",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "7feC833C0FE2fea85dC49cbC",
"name": "tempor id"
},
{
"_id": "49A8E61A2Ad3C89B8BC8016b",
"name": "sit veniam dolore culpa sed"
}
]
},
"edit": "aliqua pariatur ex elit"
}
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"
]
}