Skip to main content
1-Visitor
March 5, 2024
Question

How I access thingname and its properties through a set "identifier"

  • March 5, 2024
  • 1 reply
  • 1884 views

I have set an "identifier" for an existing thing. Can I access the thing name and its properties using the identifier instead of the thing name. If YES, how do we do this? 

1 reply

16-Pearl
March 5, 2024

Hi @SS_10815109  you want to access things in the composer or API call or at any services, can you explain your use case in detail?

1-Visitor
March 5, 2024

Hi @Surya_Tiwari , i am asking about the API call. 

For example: /Thingworx/ThingName/Properties can give us the list of properties in JSON.

Can I make a similar API call through the "identifier" without using the thing name?

16-Pearl
March 5, 2024

Hello @SS_10815109 

 

For making any API call we have a predefined URL for thingworx that has to be followed for eg 

<http/https:><host:port>/Thingworx/<entity collection>/<entity>/<characteristic collection>/<characteristic>?<query parameters>

You can also refer following guides for more information

Thingworx Rest API 

ThingWorx REST Design 

 

So Identifier won't be helpful here.  It is a way to associate your virtual thing with remote thing 

Ref guide : Identifiers 

Hope it answers your query please feel free to revert in case you have any further concerns

Thanks

Om dukiya