AddEdgeThing
The AddEdgeThing service adds an edge device to the devices that are currently connected to the EMS.
Inputs
Pass in TW_INFOTABLE that has one row and two columns. The row object must contain the following parameters:
The name of the device (Thing) that you want to add. Keep in mind that the device must exist on the ThingWorx Platform as a Thing that was created with the RemoteThing Thing Template. For example: "name":"NameOfThing",
persist, which specifies whether the device should be added to the list of devices that are automatically bound to the corresponding Thing on the ThingWorx Platform. The format for this parameter is "persist": true | false.
Outputs
This service returns an HTTP response only. If the operation was successful, it returns HTTP 200. Otherwise, it returns an HTTP error.
Here is an example of a REST call that adds an Edge Thing:

http://localhost:8000/Thingworx/Things/LocalEms/Services/AddEdgeThing
{
"name" : "acmeEdgeThing1",
"persist": true
}
Was this helpful?