Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > Bugs > Topic : [API BUG] Edit Server



Normal Mode | Print  

 [API BUG] Edit Server (3 Replies, Read 9241 times)
HOSTFLYTE
Group: NOC
Post Group: Newbie
Posts: 6
Status:
Sending an API request to lock the server works just fine using the following POST headers (Variable values have been changed for the example).

PHP Code

 $post = array();
$post['server_name'] = "TEST SERVER";
$post['locked'] = 1;
$post['serid'] = 12;
$post['ip'] = "xx.xx.xx.xx";
$post['sgid'] = 3



However, It will not UNLOCK the server when running these headers.
PHP Code

 $post = array();
$post['server_name'] = "TEST SERVER";
$post['locked'] = 0;
$post['serid'] = 12;
$post['ip'] = "xx.xx.xx.xx";
$post['sgid'] = 3


We're literally just changing the "locked" value to 0, The API says that it has succeeded, but does not update the locked value.
IP: --   


Threads
 HOSTFLYTE   [API BUG] Edit Server (3 Replies, Read 9241 times)
    |--  chirag   Hi, Sir there...   on February 22, 2019, 10:47 am
    |--  HOSTFLYTE   Thanks for the...   on February 22, 2019, 12:35 pm
    |--  chirag   Hi, Sir we...   on February 22, 2019, 1:25 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 28, 2024, 4:53 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.063