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

From BNC4FREE
Jump to navigation Jump to search
(API Network Server Delete Info)
(No difference)

Revision as of 20:03, 22 April 2020

Resource URI

   https://api.bnc4free.com/network/server/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 Freenode
ircserver required The IRC server to be deleted from the network irc.freenode.net
ircport required The IRC port that corresponds with the server to be deleted +6697
ircpassword optional The IRC password that was added with the server (if any) password123
user optional (Staff Only) The username to delete a server from a network for AnotherTestyTest

Example Request

   curl -XPOST 
    --url https://api.bnc4free.com/network/server/delete
    -d server=Apple
    -d username=TestyTest
    -d key=d681883383bcf7963427b1629d0b9963cf6335b5
    -d network=Freenode
    -d ircserver=irc.freenode.net
    -d ircport=+6697

Example Response

   {
      "status" : "success",
      "username" : "TestyTest",
      "Freenode" : {
          "irc.freenode.net" : {
              "host" : "irc.freenode.net",
              "port" : "+6697",
              "password" : ""
           }
      },
      "networks" : "Freenode"
   }