How to avoid the 405 error { "message": "Method not allowed" } in Rest Message in Put method

sowmyab
Giga Contributor

Hi all,

How to avoid the   405 error { "message": "Method not allowed" } Rest Message in Put method?

Written same thing in POST method   that is working fine but for put method getting 405 error.

If any one the solution please let us know.

Regards,

9 REPLIES 9

Harsh Vardhan
Giga Patron

Hi



Please refer the link below.



HTTP Error 405 Method not allowed Explained


Thanks for the response Harsh,


I didn't get any solution from the link


may i know what's exactly you are doing in put method ? can you please explain your business need?


I'm updating the existing incidents using put method.



For testing purpose i wrote only below code in content:



{ "number": "${number}",


  "short_description": "${summary}"   }



And created "Accept"   and "content-Type" HTTP headers.



I tried without content also still getting the same 405 error.