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": "624AcF08BeDC0c80b7E9D46e",
"createdBy": "E5bfb1176cd21D5Dc899eB0f",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "6e8Fb0D87aB8A6eEdAB8cbb3",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "D46B8bbc9Daf6cad70F97Cc4",
"name": "sunt cillum",
"description": "A user-defined object to help group documents."
},
{
"_id": "39Ca8db4eA7BA37f65bBCDB7",
"name": "ipsum anim id",
"description": "A user-defined object to help group documents."
},
{
"_id": "6B36bcCe1ff1Be2095f24bb9",
"name": "commodo laboris dolor in",
"description": "A user-defined object to help group documents."
}
]
}
}
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": "654fA3BdCCaE1CdCe4d7c862",
"createdBy": "1E195DaBB6bA014bb6fC2072",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "52cebf3dEdda4b318Abc809B",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "233e8ed06524bDCDd25463dc",
"name": "exercitation velit in",
"description": "A user-defined object to help group documents."
}
]
},
"edit": "velit eiusmod magna"
}
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"
]
}