I am using the self hosted version of IN but I don’t seem to be able to do the following with a PUT call, if I do a POST with the same information, I am able to create a new invoice:
curl -X PUT
-H ‘Cache-Control: no-cache’
-H ‘Content-Type: application/json’
-H ‘Postman-Token: 181c82f0-698a-48a1-ae3a-3d17d98986ae’
-H ‘X-Ninja-Token: mytoken’
-H ‘X-Requested-With: XMLHttpRequest’
There is nothing in the error log, I get 405 METHODNOTALLOWED in Postman and a page ‘Whoops, looks like something went wrong.’. My version is 4.5.4.
Are there any restrictions for PUT in the sefl hosted version? Do I need to provide any special set of data? I also tried with id only and did not work.