I'm trying to add a node to NPM 12 using the REST API. The node gets created fine, but in the "All Nodes" widget the error "Server error: Specified cast is not valid." appears instead of the node. I'm guessing there is a value not getting set correctly, but I can't seem to figure out which one. The error persists even after adding the appropriate pollers and node settings.
The JSON data used to create the node: {"IPAddress":"192.168.0.2","Caption":"test","EngineID":1,"ObjectSubType":"WMI","Sysname":"","Vendor":"Windows"}