# Http request node - method PATCH

**URL:** <https://discourse.nodered.org/t/http-request-node-method-patch/35290>\
**Category:** General\
**Created:** [3 November 2020 16:13 UTC](https://discourse.nodered.org/t/http-request-node-method-patch/35290 "2020-11-03T16:13:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![broo0ose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/broo0ose/32/6430_2.png) [@broo0ose](https://discourse.nodered.org/u/broo0ose)\
**Post date:** [3 November 2020 16:14 UTC](https://discourse.nodered.org/t/http-request-node-method-patch/35290/1 "2020-11-03T16:14:00Z")

</div>

Hi,

I need to send an http request using the PATCH method. This isn't listed in the drop-down of methods, but it is listed in the docs if I use msg.method to pass the information to the node.

I tried sending this:

{  
"\_msgid":"242aa003.a449c",  
"payload":"REDACTED",  
"topic":"",  
"method":"PATCH",  
"headers":{"content-type":"application/json;charset=UTF-8"},  
"url":"REDACTED",  
"cookies":{"JSESSIONID":  
{"Path":"/wsg","value":"WRMJK4Ha3AdCxnAQkzoKxKLQ31XbOzCs"}  
}  
}

but I get the message back.

{  
"message":" ["encryption"] object has missing required properties (["method"]); ","errorCode":101,"errorType":"Bad HTTP request"  
}

Am I doing something wrong ?

Thanks

Bruce

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [3 November 2020 17:31 UTC](https://discourse.nodered.org/t/http-request-node-method-patch/35290/2 "2020-11-03T17:31:23Z")

</div>

as long as the request node is set to use msg.method  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/91e44f786e37115c7eae343c28d4c2d2cbfcd696.png)  
then you should be ok - we just do `method = msg.method.toUpperCase();` before using it.

---

<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:** [2 January 2021 17:31 UTC](https://discourse.nodered.org/t/http-request-node-method-patch/35290/3 "2021-01-02T17:31:28Z")

</div>

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