cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Reference of Configuration tables

sbeckers
1-Newbie

Reference of Configuration tables

Hi,

Is there some kind of reference of all the configuration tables (i.e. their names) a Thing can have, so they can be retrieved with GetConfigurationTable? Because I didn't see that in the documentation on this site, just some examples in the Wiki using some configuration tables that aren't mentioned elsewhere.

Thanks,

Stefan

3 REPLIES 3
adam11
5-Regular Member
(To:sbeckers)

Hi Stefan,

Unfortunately, we don't have a reference of configuration tables. However, this information (and a whole lot more) can be retrieved with an API call. With this call, you'll get the name of the configuration table you're interested in modifying, which you can then set programmatically.


h3. JSON

To return JSON, the API call would be as follows: [http://localhost/Thingworx/Things/ExampleThingName?method=get&Accept=application/json | http://localhost/Thingworx/Things/ExampleChannel?method=get&Accept=application/json]


h3. XML

To return XML, the API call would be as follows: [http://localhost/Thingworx/Things/ExampleThingName?method=get&Accept=text/xml | http://localhost/Thingworx/Things/ExampleChannel?method=get&Accept=application/json]


Once you've retrieved the configuration table name, you will want to get (GetConfigurationTable) and set (SetConfigurationTable) the configuration table. Keep in mind, when cloning Things, they need to be enabled (EnableThing) and restarted (RestartThing).


Thanks,

Adam



paic
1-Newbie
(To:sbeckers)

One more comment to add to that, would be that after you update a configuration table, you need to restart the Thing for it to take effect.

Ok, thank you!

Top Tags