Forum Discussion

manthena2020's avatar
10 months ago

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

  • Hi Manthena2020,

    I believe 77499 is the devicedatasources id.

    Here is our API swagger documentation for reference 

    Hope that helps

  • It’s not explicit on the UI itself, you will need to use develop tools on your browser. Here is an example:

  • Anonymous's avatar
    Anonymous

    Use 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.

  • Yes Thats Correct. where can i find that in in LM web UI? so that i can input the info