Skip to main content
13-Aquamarine
July 28, 2026
Solved

PATCH HTTP Request in Thingworx

  • July 28, 2026
  • 8 replies
  • 110 views

Hi all,

I am trying to integrate Thingworx with a Dataverse table using API calls. I am trying to update a row, but that requires a PATCH call. The content loader functions only support GET, POST, PUT, and DELETE. Has anyone found success for making a PATCH call? I have tried overriding a PUT call as PATCH but that was not supported with the Dataverse API.

TWX Version 10.0.3

Best answer by nmutter

I tried it with 10.1 and get the same error. Most likely due to TWX 10 which uses new java version. 

I see a github issue regarding TWX 10:https://github.com/thingworx-field-work/ContentLoaderExtendedTWX/issues/6 

Guess you could try to build a new version with the adaptions they mentioned in the issue and get it working.

8 replies

Rocko
19-Tanzanite
July 29, 2026
13-Aquamarine
July 30, 2026

Rocko, thanks for this link. Trying it out currently. Currently getting the below error when trying a simple GET call. I know it is an extension, but could there be an issue with ThingWorx version compatibility? May just need to keep testing to see if I am missing something

 

Message :: 'org.apache.http.impl.client.CloseableHttpClient com.thingworx.common.utils.HttpUtilities.createHttpClient(java.lang.String, byte[], java.lang.Boolean, java.lang.Double, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.Integer, java.lang.String, javax.net.ssl.SSLContext)' 

Rocko
19-Tanzanite
July 31, 2026

Compatibility could be an issue, you’d have to verify with the developer.

Support
August 6, 2026

Hi ​@JK_10744682,

Currently, ThingWorx only supports GET, POST, PUT, and DELETE methods.

However, the following article suggests a possible workaround by manually adding the required header:

https://www.ptc.com/en/support/article/CS375549

If that approach does not work, you may want to explore available customer extensions. In addition, feel free to submit an enhancement request through the ThingWorx Ideas portal:

https://community.ptc.com/t5/ThingWorx-Ideas/idb-p/thingworxideas

13-Aquamarine
August 6, 2026

This unfortunately did not work for the API I am trying to connect to, but I was able to find a workaround to use PUT with the API (Dataverse)

13-Aquamarine
August 6, 2026

I was not able to get PATCH calls working in thingworx, but just in case anyone else is ever using the Dataverse API, PUT can be used but only to change a single value for a single entry at a time. If trying to change multiple values, it will give an error saying the operation isn’t allowed. In my use case this worked fine since I only need to update a single value at a time anyways.

13-Aquamarine
August 6, 2026

For anyone curious on using PUT for dataverse API, it can be used but only for changing a single value for a single row/entry. In my case this works just fine