Resource Path API Request
Hi
please find the resource path for API request
{{url}}/device/devices/659/devicedatasources/77499/instances/64341678/data
in the above path , we can get device ID 659 & instances id 64341678 from LM UI under info section. where can we get devicedatasources id? Could you please Help
manthena2020
Posted 2 years ago·Last reply 2 years ago
4 comments
LM User
·2 years agoUse your script to get the data. First fetch:
{{url}}/device/devices/659/devicedatasources
to get list of devicedatasources (with IDs), from which you can grab the one you’re interested in. Let’s call this hdsId. Then call:
{{url}}/device/devices/659/devicedatasources/:hdsId/instances
to get the list of instances (with IDs), from which you can grab one or all of the instances you’re interested in. Let’s call this the instanceId. Then call (in a loop if you want):
{{url}}/device/devices/659/devicedatasources/:hdsId/instances/:instanceId/data
to get your data.
Ajay Chacko
·2 years agoIt’s not explicit on the UI itself, you will need to use develop tools on your browser. Here is an example:
manthena2020
OP2 years agoYes Thats Correct. where can i find that in in LM web UI? so that i can input the info
Ajay Chacko
·2 years agoHi Manthena2020,
I believe 77499 is the devicedatasources id.
Here is our API swagger documentation for reference
Hope that helps