Skip to main content
POST
/
vpn
/
servers
/
update
Update Server API
curl --request POST \
  --url https://demo.onlinebillingform.com/api/v1/vpn/servers/update \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --header 'token: <api-key>' \
  --data id=123 \
  --data 'server_name=<string>' \
  --data 'ip_address=<string>' \
  --data ssh_port=123 \
  --data 'ssh_password=<string>' \
  --data 'ssh_username=<string>' \
  --data max_connection=123 \
  --data country_id=123 \
  --data 'vpn_type=<string>' \
  --data 'ssh_password_current=<string>'
{
  "success": true,
  "message": "Server: 8 updated successfully"
}

Authorizations

token
string
header
required

Body

application/x-www-form-urlencoded
id
integer
required
Example:

8

server_name
string
required
Example:

"UK5"

ip_address
string
required
Example:

"IPAddress"

ssh_port
integer
required
Example:

22

ssh_password
string
required
Example:

"Password"

ssh_username
string
required
Example:

"root"

max_connection
integer
required
Example:

0

country_id
integer
required
Example:

1

vpn_type
string
required
Example:

"openVPN"

ssh_password_current
string
required
Example:

"Current Password"

Response

200 - application/json

OK

success
boolean
required
message
string
required