Перейти к содержимому

Add Node

POST
/api/node

Authorizations

Request Body required

object
name
required
string
address
required
string
port
integer
default: 62050
api_port
integer
default: 62051
usage_coefficient
number
default: 1 > 0
add_as_new_host
boolean
default: true
{
"name": "DE node",
"address": "192.168.1.1",
"port": 62050,
"api_port": 62051,
"add_as_new_host": true,
"usage_coefficient": 1
}

Responses

200

Successful Response

object
name
required
string
address
required
string
port
integer
default: 62050
api_port
integer
default: 62051
usage_coefficient
number
default: 1 > 0
id
required
integer
xray_version
string
status
required

An enumeration.

string
Allowed values: connected connecting error disabled
message
string

403

You’re not allowed

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string