# Rest http api post request

**URL:** <https://discourse.nodered.org/t/rest-http-api-post-request/73227>\
**Category:** General\
**Tags:** http-request, function-node\
**Created:** [5 January 2023 14:28 UTC](https://discourse.nodered.org/t/rest-http-api-post-request/73227 "2023-01-05T14:28:29Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mudwalker](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mudwalker](https://discourse.nodered.org/u/mudwalker)\
**Post date:** [6 January 2023 09:01 UTC](https://discourse.nodered.org/t/rest-http-api-post-request/73227/6 "2023-01-06T09:01:16Z")

</div>

When I was doing a similar thing, my flow worked 100% once I added `msg.header = {}` to declare `msg.headers` as an object before defining . See this post [here](https://discourse.nodered.org/t/translation-of-curl-command-to-http-request/52101/17)

---

_[View the full topic](https://discourse.nodered.org/t/rest-http-api-post-request/73227)._
