cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create PATCH HTTP Request call from Thingworx?

Sathishkumar_C
17-Peridot

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 3

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

slangley
23-Emerald II
(To:posipova)

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