For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI referenceRelease notes
DocumentationAPI referenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTAdd one or more components to project
        • POSTCreate a new component group document
        • POSTCreate a new project
        • POSTCreate a new template document
        • POSTCreate a new workflow document
        • DELDelete a component group document
        • DELDelete a project and any components it contains
        • DELDelete a template document
        • POSTDiscover referenced resources
        • GETExport a template document
        • GETExport project as JSON document
        • GETGet a list of all the apps and adapters
        • GETGet a page of component group documents
        • GETGet a page of template documents
        • GETGet a page of workflow documents
        • GETGet a project's thumbnail
        • GETGet component group document
        • GETGet details of a workflow
        • GETGet project
        • GETGet references to a particular document
        • GETGet task details
        • POSTGet task details
        • GETGet template document
        • POSTImport a new component group document
        • POSTImport a new template document
        • POSTImport a new workflow document
        • POSTImport a project document from a JSON document
        • GETList all available rest calls
        • DELRemove a component from a project
        • PUTReplace a component group document
        • PUTReplace a template document
        • PUTReplace a workflow document
        • GETSearch projects
        • PUTSet a project's thumbnail image
        • PATCHUpdate an existing project
        • POSTValidate a workflow
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceAutomation Studio

Replace a template document

PUT
http://localhost:3000/automation-studio/templates/:id
PUT
/automation-studio/templates/:id
$curl -X PUT http://localhost:3000/automation-studio/templates/id \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{}'
1{
2 "updated": {
3 "name": "arista_eos_show_clock",
4 "group": "Arista",
5 "command": "show clock",
6 "description": "Arista Show Clock Info",
7 "template": "Value TIME (d+:d+:d+)\nValue TIMEZONE (S+)\nValue DAYWEEK (w+)\nValue MONTH (w+)\nValue DAY (d+)\nValue YEAR (d+)\n\nStart\n ^${DAYWEEK}s+${MONTH}s+${DAY}s+${TIME}s+${YEAR}\n ^[t|T]imezone(:|sis)s+${TIMEZONE} -> Record\n",
8 "data": "Mon Jan 14 18:42:49 2013\ntimezone is US/Central",
9 "type": "textfsm",
10 "_id": "string",
11 "namespace": {
12 "type": null,
13 "_id": {},
14 "name": "Juniper JUNOS"
15 },
16 "createdBy": "string",
17 "created": "2019-11-25T22:51:39.201Z",
18 "lastUpdatedBy": "string",
19 "lastUpdated": "2019-11-25T22:51:39.201Z",
20 "version": 1,
21 "tags": [
22 {
23 "_id": "string",
24 "name": "string"
25 }
26 ]
27 },
28 "edit": "string"
29}
Replaces a template document.
Was this page helpful?
Previous

Replace a workflow document

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Path parameters

idstringRequired
Template id.

Request

request body
updateobjectOptional
An entity representing an update to an existing template document.

Response

Response object.
updatedobject
An entity representing a data template.
editstring
URI to the edit page for the updated template.

Errors

500
Internal Server Error