4 Replies Latest reply on Jan 15, 2018 9:47 AM by petersch RSS
    petersch Apprentice

    Using thing Identifers in REST API calls

    From a recorded presentation I watched by Mike Mahoney regarding the Connection process, I gathered that I should be able to use a thing's Identifier as an (often better) way to manage uniquely referencing a thing from the EMS/REST API calls etc.


    Can someone tell me how I would revise REST calls like this to use the identifier (DL1 above) instead of the thing name (Name_DemoDL1) as it is currently doing?

    curl -X GET -H "Content-Type:application/json" -H "Accept:application/json" -H "appKey:0a2c50d9-4ed3-40df-aad5-98c57035a204" http://localhost/Thingworx/Things/Name_DemoDL1/Properties/TEMP


    Simply swapping the name out for the identifier doesn't seem to work. Is there some other platform service setting I need to enable? Or merely some format for how one specifies to the REST API that it is the identifier you are passing not the name?