# Trying to use Admin Http API to install a module from github

**URL:** <https://discourse.nodered.org/t/trying-to-use-admin-http-api-to-install-a-module-from-github/59595>\
**Category:** General\
**Created:** [9 March 2022 13:45 UTC](https://discourse.nodered.org/t/trying-to-use-admin-http-api-to-install-a-module-from-github/59595 "2022-03-09T13:45:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davec1001](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@davec1001](https://discourse.nodered.org/u/davec1001)\
**Post date:** [9 March 2022 13:45 UTC](https://discourse.nodered.org/t/trying-to-use-admin-http-api-to-install-a-module-from-github/59595/1 "2022-03-09T13:45:35Z")

</div>

Hi,

I am 'posting' this to [http://127.0.0.1:1880/nodes](http://127.0.0.1:1880/nodes)

```auto
msg.payload = {
   "module" : "https://github.com/davidcreager/node-red-contrib-denonsocket.git"
}

```

and receiving this response

```auto
{"code":404,"message":"Module not found"}

```

Any tips/suggestions why this fails? The repo definitely exists

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [9 March 2022 13:48 UTC](https://discourse.nodered.org/t/trying-to-use-admin-http-api-to-install-a-module-from-github/59595/2 "2022-03-09T13:48:17Z")

</div>

Try by setting `msg.payload.url` rather than `msg.payload module`

---

<div class="post-metadata">

**Author:** ![davec1001](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@davec1001](https://discourse.nodered.org/u/davec1001)\
**Post date:** [9 March 2022 14:20 UTC](https://discourse.nodered.org/t/trying-to-use-admin-http-api-to-install-a-module-from-github/59595/3 "2022-03-09T14:20:44Z")

</div>

Brilliant!!! Thanks.

I did need to have both module and url there though, otherwise it failed.

Here is what worked.

```auto
msg.payload = {
   "module" : "node-red-contrib-denonsocket",
	"url": "https://github.com/davidcreager/node-red-contrib-denonsocket.git"
}

```

---

<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:** [23 March 2022 14:21 UTC](https://discourse.nodered.org/t/trying-to-use-admin-http-api-to-install-a-module-from-github/59595/4 "2022-03-23T14:21:31Z")

</div>

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