Jump to content
  • 0

Delete setting via HTTP API


fl4co

Question

Hi,

I'm in the process of learning how to use the API and I succeeded in retrieving information from the router and to change settings.

However, I can't find a way to delete a setting and reverting it to default. For example, I'm able to set a connection policy for a client, passing a "mac" and "policy" parameter with a POST method, but I don't know how to delete this setting. I tried with a DELETE method but I always receive an error.

In short, I'd like to know the HTTP request for "no ip hotspot host <mac> policy".

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
17 часов назад, fl4co сказал:

Hi,

I'm in the process of learning how to use the API and I succeeded in retrieving information from the router and to change settings.

However, I can't find a way to delete a setting and reverting it to default. For example, I'm able to set a connection policy for a client, passing a "mac" and "policy" parameter with a POST method, but I don't know how to delete this setting. I tried with a DELETE method but I always receive an error.

In short, I'd like to know the HTTP request for "no ip hotspot host <mac> policy".

POST /rci/ip/hotspot/host/policy

with body:

{
"mac": "ec:44:33:00:11:22",
"no" : true
}

or

DELETE /rci/ip/hotspot/host/policy?mac=ec:44:33:00:11:22

  • Thanks 2
Link to comment
Share on other sites

  • 0
2 hours ago, Le ecureuil said:

POST /rci/ip/hotspot/host/policy

with body:

{
"mac": "ec:44:33:00:11:22",
"no" : true
}

or

DELETE /rci/ip/hotspot/host/policy?mac=ec:44:33:00:11:22

Thank you! This was not immediately clear to me after reading the Command Reference Guide.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...