# Patch function, assistance requested

**URL:** https://discourse.nodered.org/t/patch-function-assistance-requested/71628
**Category:** General
**Created:** [2 December 2022 21:17 UTC](https://discourse.nodered.org/t/patch-function-assistance-requested/71628 "2022-12-02T21:17:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Timmer2022](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@Timmer2022](https://discourse.nodered.org/u/Timmer2022)
#### Post date: [2 December 2022 21:17 UTC](https://discourse.nodered.org/t/patch-function-assistance-requested/71628/1 "2022-12-02T21:17:31Z")

</div>

Hello everyone.

I want to use node-red to PATCH (update) a row in baserow through API.. I'm able to retrieve row information using the HTTP-in and GET function no problem but editing a row with PATCH is where I fall down..

The HTTP-in or HTTP request doesn't allow for a PATCH function but does allow for a "set by msg.method" selection.. How or where do I initialize the "msg.method" variable? thus far I tried an inject node feeding a change node to set the msg.method to a string value of "PATCH" and then finally into an http-in node with my baserow url to make the change but nothing happens..

Am I on the right track with this or way off the mark here?

Any help would be appreciated.  
Thanks.

Tim.

---

<div class="post-metadata">

### Author: ![madhouse](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@madhouse](https://discourse.nodered.org/u/madhouse)
#### Post date: [2 December 2022 22:31 UTC](https://discourse.nodered.org/t/patch-function-assistance-requested/71628/2 "2022-12-02T22:31:58Z")

</div>

Interesting. There's a few things that will help figure this out.

1. What is your flow so far?
2. What input are you giving/getting?
3. What should the output be?

You'll want to have some kind of example for 2 and 3. That way anyone who helps can see what needs to be changed and what it needs to look like after it gets its change.

---

<div class="post-metadata">

### Author: ![Timmer2022](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@Timmer2022](https://discourse.nodered.org/u/Timmer2022)
#### Post date: [3 December 2022 01:58 UTC](https://discourse.nodered.org/t/patch-function-assistance-requested/71628/3 "2022-12-03T01:58:12Z")

</div>

It's difficult to describe.. but here is the flow I have this far . Just keeping it simple with a manual trigger..

 ![Screenshot_20221202_204607_Brave](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/1/81ee84472401064e122a8103fe558cddb7d549ad.jpeg)

So the http request is setup as such...

 ![Screenshot_20221202_205445_Photo Editor](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/e/5e572496431fdf0b22ba6998638250ce4f7e6d5a.jpeg)

The url is supposed to patch a value in base row given appropriate values in the link...

Hopefully this helps explain..

Thanks in advance.  
T.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [3 December 2022 05:17 UTC](https://discourse.nodered.org/t/patch-function-assistance-requested/71628/4 "2022-12-03T05:17:52Z")

</div>

> So the http request is setup as such...

What version of node-red are you running ?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/f/3f349588746c4251ae7353a1db90bed6d6f2d0c5.png)

For authentication you can check the checkbox and use the method required

---

<div class="post-metadata">

### Author: ![Timmer2022](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@Timmer2022](https://discourse.nodered.org/u/Timmer2022)
#### Post date: [5 December 2022 14:00 UTC](https://discourse.nodered.org/t/patch-function-assistance-requested/71628/5 "2022-12-05T14:00:43Z")

</div>

Hey bakman2.

The version I am using is 3.0.2..

The authentication is all good, I've added that in the header..

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [3 February 2023 14:00 UTC](https://discourse.nodered.org/t/patch-function-assistance-requested/71628/6 "2023-02-03T14:00:48Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
