Skip to main content
17-Peridot
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

20-Turquoise

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

Translate
Support

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

Translate
4-Participant

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