Update record (PUT) with BaseRow. Error 405

Can anyone help me? ,I’m using BaseRow as a database, it’s returning a 405 error, only in the update option the others (create, get record and delete record) are ok.





image
image

Hi,
As can be seen from the error message, the ‘PUT’ method you are using is not allowed for the server. Error 405 means that your request was received and recognized by the server, but the server has rejected that particular method for the requested resource.
Check that the PUT method is the correct one to use for the API of the platform you are using.

create, get record and delete record are ok.

Those work because they are the allowed methods.

Thanks for the quick response, but looking at BaseRow, all CRUD functions are enabled and the Update row method available.
erro_405_8

Hi,
The problem is not in permissions, but rather in the type of a request you are using (‘PUT’). As can be seen from the attached screenshot, the API requires a ‘PATCH’ request to update a row. Thus using PUT was returning a “Method PUT not allowed”.
At the moment, Composer does not support PATCH requests.

If you want to learn more about PUT and PATCH requests, read here:

Thank you for sharing your knowledge, which was very valuable.

1 Like

Hello everyone, is there any outline for this PATCH to work with PUT?

Hi,

As can be seen from my previous answers, PATCH and PUT are two different types of requests. Thus, they cannot be interchanged.

Does the only workaround lies in using the PATCH method in the HTTP request?

That particular destination requires a PATCH request, so the PUT will not work.

1 Like

I understand that, I plan to use Baserow too for a section of the app.
Can we then use the HTTP flow function with the PATCH method?

Yes, the HTTP request flow function has the PATCH request option:

image

1 Like

Hello, were you able to use the PATCH in this way that you mentioned?

Haven’t used it yet with Baserow but used it successfully on a previous functionality by following this great video tutorial

  • next part on YouTube.

Hope this helps. Let me know in case of issues.

@Fred_Kuzyk Thanks for this tutorial :+1:

1 Like