REST API VLAN creation and interface sub-collection
I have been playing around with REST API and have stumbled across a challenge around assigning a "tagged" interface.
In this sample REST call, I create the vlan name, set the vlan tag & set the description. I assume a default setting exists assigning the interface as "Untagged" because that is the net result in tmsh.
https://10.128.1.245/mgmt/tm/net/vlan{"interfaces": "1.2", "kind": "tm:net:vlan:vlanstate", "tag": "10", "name": "v10", "description": "automation test"}
What I would like to do is add the interface as tagged. I have researched this for countless hours and attempted numerous uri variations. The interface portion of the config is a "sub-collection" so I have even tried setting the interface directly (after vlan creation) via https://10.128.1.245/mgmt/tm/net/vlan/v10. I tried numerous variations against that base URL as well. All to no avail.
This can be done via the following curl call, so I assume it can be done via the REST API?
curl -sk -u admin: -H "Content-type: application/json" -X POST -d '{"name":"v10","tag":"10","interfaces": [{"name":"1.2","tagged":true}]}' https://10.128.1.245/mgmt/tm/net/vlan
Can this be done via REST? All guidance appreciated.