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": "ef2D6ced78Bd93aFaEdeE422",
    "createdBy": "67B1FC77DEfD83C1f063e9EF",
    "created": "2019-11-25T22:51:39.201Z",
    "lastUpdatedBy": "6b43eAE58D5bf9A65e1ABDA5",
    "lastUpdated": "2019-11-25T22:51:39.201Z",
    "version": 1,
    "tags": [
      {
        "_id": "e6111cEaB0BE05B33E8e9EC2",
        "name": "Ut laboris",
        "description": "A user-defined object to help group documents."
      },
      {
        "_id": "86fb9Cbdd3fC95a99cD9DadD",
        "name": "fugiat consequat proident anim",
        "description": "A user-defined object to help group documents."
      },
      {
        "_id": "385dA8e04FB3bB129362Fd8B",
        "name": "enim",
        "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": "A016B4deAF70b008aAfeebfd",
    "createdBy": "EBeAe16C1d0eeFc69Cc3D294",
    "created": "2019-11-25T22:51:39.201Z",
    "lastUpdatedBy": "4FCFBAbD3de0Ee70d0C4204f",
    "lastUpdated": "2019-11-25T22:51:39.201Z",
    "version": 1,
    "tags": [
      {
        "_id": "70B5465FFB2e8fA488c26a5e",
        "name": "magna sit Excepteur",
        "description": "A user-defined object to help group documents."
      },
      {
        "_id": "d0e6EF14dBFD38daEcABfCe4",
        "name": "eiusmod",
        "description": "A user-defined object to help group documents."
      },
      {
        "_id": "AF26Ad4F6220Cb3C29f2D176",
        "name": "ut consequat labore proident",
        "description": "A user-defined object to help group documents."
      },
      {
        "_id": "A96accCe50BCAFe4c3db2BAe",
        "name": "officia laborum ea",
        "description": "A user-defined object to help group documents."
      }
    ]
  },
  "edit": "occaecat minim"
}
           
          
            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"
  ]
}