restazure-data-factoryput

Is it Possible to Make an ADF Web Activity PUT Request Without a Body?


I have an API that I am accessing using Bruno and its a PUT request that does not require a body. When I try this as a Web activity in ADF I get the error a 'valid body is required for PUT and POST requests'.


Solution

  • As per this documentation Azure Data Factory (ADF) Web activities require a body for PUT requests, even if your API technically doesn't need one.

    Required for POST/PUT/PATCH methods.

    So, there is no way to make request unless you can pass either dummy or empty json body.

    Body

    {}
    

    it all depends on the content type your api accepting, check the content type your api accepting accordingly you pass empty body.