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.
ThingWorx supports/uses GET, PUT, POST, DELETE http methods.
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
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 });