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": "8075f4AB9eDbfaA569CA9d1b",
"namespace": {
"type": "project",
"name": "adipisicing",
"accessControl": {
"read": [
"ut eiusmod in reprehenderit"
],
"write": [
"adipisicing ipsum",
"commodo"
],
"execute": [
"ad reprehenderit",
"in ullamco minim",
"commodo reprehenderit fugiat ut",
"mollit"
],
"manage": [
"exercitation dolore occaecat cillum"
]
}
},
"createdBy": "2b212AEd982a3f9617eFCc98",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "0F3fEC0EbaeFdcaF4246935D",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "f13E8aC185e04BeDfEeaC1A9",
"name": "magna sit"
},
{
"_id": "defcdAEB6d7D37bEB2613030",
"name": "laborum dolor aliqua"
},
{
"_id": "Ea5f9FeeEfcfaea8634ECcbF",
"name": "tempor"
},
{
"_id": "f5eefE57de9bedaEdE6A5Ea3",
"name": "in"
}
]
}
}
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": "75eDCF7b055E5fd6b5BCdef5",
"namespace": {
"type": "project",
"name": "pariatur",
"accessControl": {
"read": [
"dolore aute ut elit",
"magna",
"laboris dolor",
"pariatur",
"aute laborum tempor elit reprehenderit"
],
"write": [
"Ut commodo",
"incididunt",
"fugiat"
],
"execute": [
"minim"
],
"manage": [
"sunt quis",
"in ut in",
"non velit"
]
}
},
"createdBy": "0b27f720cf3536dDDFb59D85",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "4a215F35DCdf901f8C95d251",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "EDadedceFb6D88fabEb9ed9e",
"name": "do in in"
},
{
"_id": "72980Eee519C3207cdaCcE3D",
"name": "fugiat mollit aliqua dolore"
},
{
"_id": "659fd7b8E0CD7158B15E115F",
"name": "adipisicing"
},
{
"_id": "C443e3C0b1ba9Ec7b8136073",
"name": "est enim incididunt"
}
]
},
"edit": "occaecat"
}
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"
]
}