Skip to main content
17-Peridot
November 21, 2018
Question

How to create PATCH HTTP Request call from Thingworx?

  • November 21, 2018
  • 2 replies
  • 2193 views

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.

2 replies

20-Turquoise
November 29, 2018

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

Support
November 30, 2018

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

4-Participant
July 25, 2019

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
});