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": "dd3D0EBbC918CC9FF50B01Cd",
"namespace": {
"type": "project",
"name": "eu Ut ex do dolore",
"accessControl": {
"read": [
"dolor laborum exercitation quis ea",
"adipisicing anim ea",
"ipsum",
"officia culpa enim cupidatat",
"laboris"
],
"write": [
"commodo adipisicing ut",
"elit quis deserunt aliquip"
],
"execute": [
"commodo adipisicing do in incididunt",
"elit reprehenderit quis sint officia",
"magna incididunt mollit eiusmod amet"
],
"manage": [
"mollit et Lorem fugiat",
"ex tempor exercitation irure ad",
"dolor ullamco consequat",
"occaecat veniam id"
]
}
},
"createdBy": "9Bb13b4E71adaD7c380Bf4a1",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "43e8084d72fFaB0CdbAf9daE",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "aF8a473ABbc823C9368eBDfC",
"name": "nostrud"
},
{
"_id": "ADF0A90FF2cD4958DAcb8eB0",
"name": "irure magna Excepteur"
},
{
"_id": "07Ce30d24c89AeAEA48D1805",
"name": "ea adipisicing dolor ex"
},
{
"_id": "F11cC216cc5B4356A601Cc76",
"name": "sunt adipisicing velit exercitation"
}
]
}
}
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": "ab4dc56924c81E7D8B8FdCB1",
"namespace": {
"type": "project",
"name": "consequat ex ullamco est nulla",
"accessControl": {
"read": [
"minim veniam laboris enim",
"sit laborum eiusmod Excepteur id",
"adipisicing tempor"
],
"write": [
"voluptate proident aliqua",
"occaecat",
"in sit Excepteur mollit",
"Lorem dolor elit"
],
"execute": [
"fugiat esse in ea",
"elit",
"pariatur nulla cillum adipisicing",
"in ea"
],
"manage": [
"labore sint proident fugiat nulla",
"ex nostrud do ea"
]
}
},
"createdBy": "c9C6a24172E9d12eBd67cB59",
"created": "2019-11-25T22:51:39.201Z",
"lastUpdatedBy": "8f08C66fCBcd4432AFed0D01",
"lastUpdated": "2019-11-25T22:51:39.201Z",
"version": 1,
"tags": [
{
"_id": "Ae6c6E54F8FEC3c9539abaa0",
"name": "aliqua consequat sunt"
},
{
"_id": "71dF08b98df4FBfb99f22b4b",
"name": "aliqua esse ut cillum"
}
]
},
"edit": "laboris id sunt"
}
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"
]
}