Summary
          Translate FAML to Smart Template
          Description
          Translate FAML object to Smart Template
          Route
          POST /smart_template/phcfg/to/st
          Roles
          
            admin
          
          Parameters
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Required | Description | 
            
            
              
    | name | string | yes | Name of the FAML object | 
    | phcfg | object | yes | FAML object | 
            
          
          
            Copied to Clipboard
            
            {
  "name": "ubUfX",
  "phcfg": {
    "_attr": {
      "type": "leaf",
      "ns": "http://tail-f.com/ns/ncs",
      "prefix": "ios",
      "condition": "cant",
      "severity": "warning"
    }
  }
}
           
          
          Return
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Description | 
            
            
              
                | template | object | Smart Template object | 
            
          
          
            Copied to Clipboard
            
            {
  "form": {
    "name": "Form 123",
    "children": [
      {
        "properties": {
          "type": "leafref",
          "path": "/ncs:devices/ncs:device/ncs:name",
          "min": null,
          "max": "4",
          "minLength": null,
          "maxLength": null,
          "default": true,
          "direction": "vertical",
          "required": false,
          "enforce": false,
          "hidden": true
        },
        "id": "proident reprehenderit velit consectetur sit",
        "type": "container",
        "element": "{\"type\":\"service_model\",\"id\":{\"name\":\"/ncs:services/devices:stringified_json\"}",
        "name": "vlan_id_123",
        "display_name": "vlan",
        "source_type": "service_model",
        "source": "/ncs:services/abc_devices:ios.device",
        "key": "key545385c3-fc66-491b-bf6f-abc2214366dc"
      }
    ],
    "elements": [
      {
        "type": "service_model",
        "id": {
          "name": "/ncs:services/test_devices:service_name"
        }
      },
      {
        "type": "service_model",
        "id": {
          "name": "/ncs:services/test_devices:service_name"
        }
      },
      {
        "type": "service_model",
        "id": {
          "name": "/ncs:services/test_devices:service_name"
        }
      },
      {
        "type": "service_model",
        "id": {
          "name": "/ncs:services/test_devices:service_name"
        }
      }
    ],
    "_id": "a0dfa567-acfd-c8a3-2054-62804e6f2011",
    "groups": [
      "f4400773357522bd47232463",
      "9ee6a8f4a300434d6cebcd6f",
      "464395f74d33952ff3517f63",
      "fda5d98dcdc36e69e2332ac9"
    ],
    "created": "1963-11-10T18:54:48.613Z",
    "created_by": "a1a63664cf94bbb5b990f160",
    "last_updated": "1999-05-09T03:11:24.717Z",
    "last_updated_by": "125cb0b8a00d853fd1124cae",
    "tags": [
      "labore deserunt esse",
      "officia",
      "consectetur ut sunt Excepteur",
      "officia sint occaecat reprehenderit"
    ]
  },
  "faml": {
    "_attr": {
      "type": "keyword",
      "ns": "http://tail-f.com/ns/ncs",
      "prefix": "ncs",
      "condition": "cant",
      "severity": "error"
    },
    "_value": "V"
  }
}