# Method \\”POST\\” not allowed

**URL:** https://community.baserow.io/t/method-post-not-allowed/396
**Category:** Technical Help
**Created:** [April 14, 2022, 9:35am UTC](https://community.baserow.io/t/method-post-not-allowed/396 "2022-04-14T09:35:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mauroary44](https://community.baserow.io/letter_avatar_proxy/v4/letter/m/57b2e6/32.png) [@mauroary44](https://community.baserow.io/u/mauroary44)
#### Post date: [April 14, 2022, 9:35am UTC](https://community.baserow.io/t/method-post-not-allowed/396/1 "2022-04-14T09:35:02Z")

</div>

Raw response for the API Status code 405 {“detail”:“Method “POST” not allowed.”}

$url = “[https://api.baserow.io/api/database/rows/table/58437/23/](https://api.baserow.io/api/database/rows/table/58437/23/)”;

i want to update status of a transaction record, so i am finding the desired record with transaction.id (field\_338989) but its sending me an status 405.

my API docs gave patch url as `https://api.baserow.io/api/database/rows/table/58437/{row_id}/`

---

<div class="post-metadata">

### Author: ![nigel](https://community.baserow.io/user_avatar/community.baserow.io/nigel/32/51_2.png) [@nigel](https://community.baserow.io/u/nigel)
#### Post date: [April 14, 2022, 9:44am UTC](https://community.baserow.io/t/method-post-not-allowed/396/2 "2022-04-14T09:44:00Z")

</div>

@mauroary44 to update a record you need to send a `PATCH` request instead of a `POST`. An URL isn’t a `PATCH` url. You make a request to an URL with a particular request method (`PATCH`, `GET`, `POST` etc). See [HTTP request methods - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods).

---

<div class="post-metadata">

### Author: ![mauroary44](https://community.baserow.io/letter_avatar_proxy/v4/letter/m/57b2e6/32.png) [@mauroary44](https://community.baserow.io/u/mauroary44)
#### Post date: [April 14, 2022, 10:17am UTC](https://community.baserow.io/t/method-post-not-allowed/396/3 "2022-04-14T10:17:54Z")

</div>

@nigel , that line was just showing how I was sending the URL.  
My code is here, and the error continues to appear.  
To Read, Create and Delete works well in Update is always giving error.

 ![Capturar1](https://community.baserow.io/uploads/default/original/1X/2906c04bab537490bc7e7c7d140ea2d4e0ca6a19.png)

---

<div class="post-metadata">

### Author: ![nigel](https://community.baserow.io/user_avatar/community.baserow.io/nigel/32/51_2.png) [@nigel](https://community.baserow.io/u/nigel)
#### Post date: [April 14, 2022, 10:34am UTC](https://community.baserow.io/t/method-post-not-allowed/396/4 "2022-04-14T10:34:40Z")

</div>

You need to change `POST` to `PATCH` on line 5 of your PHP. You are sending a `POST` request to an endpoint that requires a `PATCH`. This blog might help: [REST / HTTP methods: POST vs. PUT vs. PATCH](https://www.mscharhag.com/api-design/http-post-put-patch) . In our [API documenation](https://api.baserow.io/api/redoc/#operation/update_database_table_row) to update a row it is shown that you need to send a `PATCH` request.

---

<div class="post-metadata">

### Author: ![mauroary44](https://community.baserow.io/letter_avatar_proxy/v4/letter/m/57b2e6/32.png) [@mauroary44](https://community.baserow.io/u/mauroary44)
#### Post date: [April 14, 2022, 11:26am UTC](https://community.baserow.io/t/method-post-not-allowed/396/5 "2022-04-14T11:26:27Z")

</div>

@nigel , Fantastic, it worked!! 😉 💪

I’ll see that documentation and get to understand better about [REST / HTTP methods: POST vs. PUT vs. PATCH](https://www.mscharhag.com/api-design/http-post-put-patch)

Now I could understand why your [API documenation](https://api.baserow.io/api/redoc/#operation/update_database_table_row) has PATCH / GET / POST and each one with different colors.

Thanks a lot for the help friend.
