|
The examples in this topic assume that you are familiar with executing HTTP POSTS in your web development environment or application.
|
Notes
|
Sample URL
|
HTTP Action
|
Content Type
|
|||
---|---|---|---|---|---|---|
UPDATE
|
Updates require specifying the entity part as well
|
http://host/Thingworx/Things/thing_name
|
PUT
|
application/json or text/xml
|
||
DELETE
|
Deletes require specifying the entity part as well
|
http://host/Thingworx/Things/thing_name
|
DELETE
|
n/a
|
||
INVOKING SERVICES
|
Calling a service requires specifying the complete URL, including the specific characteristic
|
http://host/Thingworx/Things/MyThing/Services/myService
|
POST
|
application/json
|
|
It is recommended to use HTTPS in production or any time network integrity is in question.
|
Methods
|
|
---|---|
GET
|
Retrieve a value.
|
PUT
|
Write a value or create new Things or properties.
|
POST
|
Execute a service.
|
DELETE
|
Delete a Thing or Property.
|
Accept Header Values
|
|
---|---|
JSON
|
application/json
|
XML
|
text/xml
|
HTML
|
text/html (or omit Accept header)
|
CSV
|
text/csv
|
Content Type Header Values
|
|
---|---|
JSON
|
application/json
|
XML
|
text/xml
|
|
To see this information, it must be shown as JSON.
|
Header Key
|
Header Value Example
|
---|---|
appKey
|
1x9256cf-9fe9-434e-adbe-9772c0c40261
|