Summary
          Publish a Smart Template
          Description
          Publish a Smart Template
          Route
          POST /smart_template/st/publish
          Roles
          
            admin
          
          Parameters
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Required | Description | 
            
            
              
    | template_name | string | yes | Smart Template Name | 
    | provider | string | yes | Name of the provider | 
    | instance_data | object | yes | Smart Template Instance | 
            
          
          
            Copied to Clipboard
            
            {
  "template_name": "u",
  "provider": "z",
  "instance_data": {
    "variables": {
      "ZfbuS": [
        {
          "v": {
            "VhvkRrCBa": "cupidatat veniam deserunt nisi",
            "zT": "elit aute",
            "ckmem": "Excepteur enim sunt ut fugiat",
            "rEFoCbrReLk": "pariatur in dolor culpa",
            "SjD": "dolor sint adipisicing consequat et"
          }
        }
      ]
    },
    "faml": {
      "_attr": {
        "type": "leaf",
        "ns": "http://tail-f.com/ns/config/1.0",
        "prefix": "ios",
        "condition": "cant",
        "severity": "warning"
      },
      "_value": "M"
    },
    "action": "create"
  }
}
           
          
            Copied to Clipboard
            
            {
  "type": "object",
  "properties": {
    "template_name": {
      "type": "string",
      "pattern": "[A-Za-z]+"
    },
    "provider": {
      "type": "string",
      "pattern": "[A-Za-z]+"
    },
    "instance_data": {
      "$ref": "smartTemplateInstance"
    }
  },
  "required": [
    "template_name",
    "provider",
    "instance_data"
  ],
  "additionalProperties": false
}
           
          Return
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Description | 
            
            
              
                | status | object | NSO Status | 
            
          
          
            Copied to Clipboard
            
            [
  {
    "host": "E",
    "data": {
      "action": "update",
      "success": false
    }
  }
]
           
          
            Copied to Clipboard
            
            {
  "type": "array",
  "description": "Array of results",
  "items": {
    "type": "object",
    "properties": {
      "host": {
        "type": "string",
        "pattern": "[A-Za-z]+"
      },
      "data": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "update"
            ]
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "action",
          "success"
        ]
      }
    },
    "required": [
      "host",
      "data"
    ]
  }
}