How to disable Maker api (programmatically)

Question: How to disable Maker API (programmatically):

I want to disable a particular instance of the Maker API app, at a certain time each day.
I have the Trigger set up in a Rule Machine, however I believe that I have the wrong syntax for the POST instruction.

Can someone suggest the correct syntax for the following:

{Please note: 192.168.1.55 = ip address of this Hub,
2083 is app id of the Maker API}

Thanks in advance.

I'm using this call (http://hubIPaddress:8080/installedapp/disable?id=MakerID&disable=true)

2 Likes

As @JimB indicated, your actions in Rule Machine should be as follows:

To disable:
Send POST to http://127.0.0.1:8080/installedapp/disable?id=2083&disable=true

To enable:
Send POST to http://127.0.0.1:8080/installedapp/disable?id=2083&disable=false

Note that an HTTP POST action is being sent.

1 Like

I'm somewhat confused.
Isn't that exactly what I had put in?

No, there is no body; it should all be part of the URL.

1 Like

So, I changed the app to be the following:


or:

(I changed it to 127.0.0.1 , and it still didn't work, so I changed it back to 192.168.1.55 which is the ip of the HUb.)
I kept on checking the app list, and it never shows the maker app to be disabled.
(I refreshed the list several times.)

I'm sure this probably isn't the only issue, but in your "false" line, you have a "&" where I think you need a "?" instead.

1 Like

You're missing the "http://" in your URL

example of a reboot command

7 Likes

Thank you, Thank you, Thank you!

I must have missed the obvious, and concentrated on the obscure!

You spotted my error.

3 Likes

Glad to help!

1 Like