# Write token in http request function via dashboard

**URL:** <https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800>\
**Category:** Dashboard\
**Tags:** node-red-dashboard, function-node, dashboard-2\
**Created:** [5 March 2025 10:05 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800 "2025-03-05T10:05:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pattrp](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@pattrp](https://discourse.nodered.org/u/pattrp)\
**Post date:** [5 March 2025 10:05 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800/1 "2025-03-05T10:05:11Z")

</div>

I want to change token in http request function via node red dashboard, it's like I write a new token through the dashboard and it changes in the flow.

It can or cannot? How? please help me

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [5 March 2025 17:43 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800/2 "2025-03-05T17:43:57Z")

</div>

> [@pattrp](#):
>
> It can or cannot?

Can

> [@pattrp](#):
>
> How? please help me

1. Store the inputted token in [context](https://nodered.org/docs/user-guide/context)
2. Retrieve the token from context using a change node and set the appropriate header or url parameter for the HTTP Request (see [cookbook](https://cookbook.nodered.org/#http-requests) for examples)

---

<div class="post-metadata">

**Author:** ![pattrp](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@pattrp](https://discourse.nodered.org/u/pattrp)\
**Post date:** [7 March 2025 02:34 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800/3 "2025-03-07T02:34:41Z")

</div>

have example? I really can't.

---

<div class="post-metadata">

**Author:** ![pattrp](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@pattrp](https://discourse.nodered.org/u/pattrp)\
**Post date:** [7 March 2025 02:42 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800/4 "2025-03-07T02:42:13Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/4/347ba0f543f606d21d2dd913e9e1eb23ec76ab78.png)  
change only the blue highlight.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [7 March 2025 08:49 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800/5 "2025-03-07T08:49:08Z")

</div>

`Http://mywebsiteaddress/{{toknen}}/path`

prior to http node set msg.token to the token value. Then {{token}} will be replaced by the msg.token value you have set.

This is all mentioned in the side bar nodes docs.

> When configured within the node, the URL property can contain [mustache-style](http://mustache.github.io/mustache.5.html) tags. These allow the url to be constructed using values of the incoming message. For example, if the url is set to `example.com/{{{topic}}}` , it will have the value of `msg.topic` automatically inserted. Using {{{...}}} prevents mustache from escaping characters like / & etc

if you require more help provide an example of your flow, following the instructions below.

[How to import/export a flow](https://nodered.org/docs/user-guide/editor/workspace/import-export)

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

Youn may also benifit from watching the [essentials videos](https://m.youtube.com/watch?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6&v=ksGeUD26Mw0&embeds_referring_euri=https%3A%2F%2Fnodered.org%2F&source_ve_path=OTY3MTQ&feature=emb_imp_woyt) which will give you a better understanding of node-red feature etc.

---

<div class="post-metadata">

**Author:** ![pattrp](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@pattrp](https://discourse.nodered.org/u/pattrp)\
**Post date:** [8 March 2025 02:21 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800/6 "2025-03-08T02:21:21Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/9/e9c284dc8d8b923dc3e0d7d13db0f0cbcfa4276e.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/4/f4387c8b4e2efc67d9aa4399c482a21c2e957e82.png)  
debug is correct but in http request shows error "Warning: msg properties can no longer override set node properties. See bit.ly/nr-override-msg-props" how should I fix it?

---

<div class="post-metadata">

**Author:** ![pattrp](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@pattrp](https://discourse.nodered.org/u/pattrp)\
**Post date:** [8 March 2025 04:53 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800/7 "2025-03-08T04:53:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [8 March 2025 07:23 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800/8 "2025-03-08T07:23:14Z")

</div>

Read the side bar notes

> url (string)  
> If not configured in the node, this optional property sets the url of the request.

If you wish to use msg.url and supply the whole http url then leave the field blank

---

<div class="post-metadata">

**Author:** ![pattrp](https://avatars.discourse-cdn.com/v4/letter/p/58956e/32.png) [@pattrp](https://discourse.nodered.org/u/pattrp)\
**Post date:** [8 March 2025 09:45 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800/9 "2025-03-08T09:45:00Z")

</div>

I did it, thank you very much. 😍

---

<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:** [7 April 2025 09:45 UTC](https://discourse.nodered.org/t/write-token-in-http-request-function-via-dashboard/95800/10 "2025-04-07T09:45:18Z")

</div>

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