The image shows the documentation for POST /network-device/location.The documentation says that it "Associates the given location to the given device". The actual argument is a NetworkDeviceNIO, not a given location or device. Unable to see a "location" field in the NetworkDeviceNIO. The closest is a "snmpLocation". So, how is this API supposed to be used.
However, there is a "location" element in the NetworkDeviceNIO model. So, let's say your location UUID is "d2b063ad-ea9b-43cd-8536-e68aa9d31c66". Create a JSON body for the /network-device/location resource:
"id":"1153fb76-06dd-4c61-9aa6-739e3d4ab80f", "location":"d2b063ad-ea9b-43cd-8536-e68aa9d31c66" }
Here, id is the device's UUID and location is the location UUID obtained from GET /location. There is a “location” attribute, It is between “type” and “id”. For the location API, one would expect all I should be able to enter in the model is device ID and location ID.
Please sign in to leave a comment.