Skip to main content
Nov 21, 2018 2:50 PM UTC
Question

How to create PATCH HTTP Request call from Thingworx?

Hi All,

I am trying to create a service with PATCH HTTP Call from thingworx?. This one is work with POSTMAN. How can i resolve this?

 

Thanks & Regards,

Sathishkumar C.

3 replies

Nov 29, 2018 2:53 PM UTC

ThingWorx supports/uses  GET, PUT, POST, DELETE http methods.

Nov 30, 2018 7:53 PM UTC

Hi @Sathishkumar_C.

 

Feel free to submit your suggestion to our new ThingWorx Ideas forum.  Others who share your opinion will be able to vote for your idea, and it will be considered for a future release of the product.

 

Regards.

 

--Sharon

Jul 25, 2019 9:42 AM UTC

Try using ContentLoaderFunctions.PutText with "X-HTTP-Method-Override: PATCH" request header. The below works for me when appending/flushing data to Azure Data Lake gen2 REST API which uses the PATCH verb. 

var result = Resources["ContentLoaderFunctions"].PutText({
 headers: {
 "Authorization": "Bearer "+token,
 "x-ms-version": "2018-11-09",
 "X-HTTP-Method-Override": "PATCH"
 },
 	url: appendUrl,
 content: content
});