Difference between revisions of "API:User/Network/Delete"

From BNC4FREE
Jump to navigation Jump to search
(API User Network Delete Info)
 
m (Replace references to Freenode)
 
(One intermediate revision by the same user not shown)
Line 26: Line 26:
 
| required
 
| required
 
| The name of the network to be added
 
| The name of the network to be added
| Freenode
+
| LiberaChat
 
|-
 
|-
 
| username
 
| username
 
| optional
 
| optional
| '''(Staff Only)''' The username to add allowed hosts for
+
| '''(Staff Only)''' The username to delete the network from
 
| AnotherTestyTest
 
| AnotherTestyTest
 
|}
 
|}
Line 41: Line 41:
 
     -d username=TestyTest
 
     -d username=TestyTest
 
     -d key=d681883383bcf7963427b1629d0b9963cf6335b5
 
     -d key=d681883383bcf7963427b1629d0b9963cf6335b5
     -d network=Freenode
+
     -d network=LiberaChat
  
 
== Example Response ==
 
== Example Response ==
Line 47: Line 47:
 
       "status" : "success",
 
       "status" : "success",
 
       "username" : "TestyTest",
 
       "username" : "TestyTest",
       "networks" : "Freenode"
+
       "networks" : "LiberaChat"
 
     }
 
     }
  
 
[[Category:API_Functions]]
 
[[Category:API_Functions]]

Latest revision as of 17:16, 26 May 2021

Resource URI

   https://api.bnc4free.com/user/network/delete

Parameters

Variable Required Description Example
server required The name of the server Apple
username required Your Username TestyTest
key required Your API Key d681883383bcf7963427b1629d0b9963cf6335b5
network required The name of the network to be added LiberaChat
username optional (Staff Only) The username to delete the network from AnotherTestyTest

Example Request

   curl -XPOST 
    --url https://api.bnc4free.com/user/network/delete
    -d server=Apple
    -d username=TestyTest
    -d key=d681883383bcf7963427b1629d0b9963cf6335b5
    -d network=LiberaChat

Example Response

   {
      "status" : "success",
      "username" : "TestyTest",
      "networks" : "LiberaChat"
   }