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": "6c2F51Df89a33BDbc636B7d9",
"namespace": {
"type": "project",
"name": "sit",
"accessControl": {
"read": [
"minim dolore esse",
"aute elit",
"do ullamco magna nulla",
"consectetur sit Ut consequat sunt",
"enim aliqua nulla ipsum voluptate"
],
"write": [
"proident id ut Duis laborum"
],
"execute": [
"dolor ad qui aliquip"
],
"manage": [
"ad",
"eiusmod ex"
]
}
},
"createdBy": "91868D9Eb4c8c81A150c8b50",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "40E1E164698B3f9BC187075b",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "Bbce5C3CFEaF14f5b5D132dF",
"name": "est mollit aliquip Excepteur"
},
{
"_id": "C73eD7ee5Ed467bEccaA2f1E",
"name": "enim"
},
{
"_id": "CE975E92dD8C006aBEceF14c",
"name": "nulla nisi veniam sint anim"
},
{
"_id": "e1B4D8AbA4e45f6bCfE59bF9",
"name": "dolore Duis elit"
},
{
"_id": "bFAD0ef37dE7E1cE59719B3B",
"name": "Duis"
}
]
}
}
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": "E4aF32bfAffeAcF4644CFD2a",
"namespace": {
"type": "project",
"name": "eu quis est",
"accessControl": {
"read": [
"Lorem in incididunt anim eiusmod",
"reprehenderit exercitation ipsum",
"id nostrud proident Duis",
"dolor"
],
"write": [
"magna velit ipsum",
"deserunt reprehenderit cillum mollit consectetur",
"adipisicing ea in"
],
"execute": [
"ipsum cillum ut minim",
"deserunt nisi",
"in nisi cupidatat"
],
"manage": [
"velit ex est ut cupidatat",
"velit in nostrud in sit",
"sit aliquip dolor deserunt ad",
"minim",
"mollit irure et"
]
}
},
"createdBy": "BFd927e6846F8B2fB4Dab8A2",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "a4f2Eb737A4306dab76b9836",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "3DadF9F2EEFD02Aa5dccAdfD",
"name": "qui veniam tempor in enim"
}
]
},
"edit": "do proident"
}
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"
]
}