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

Modify Node

PUT
/api/node/{node_id}

Authorizations

Parameters

Path Parameters

node_id
required
integer

Request Body required

object
name
string
nullable
address
string
nullable
port
integer
nullable
api_port
integer
nullable
usage_coefficient
number
nullable
status
string
Allowed values: connected connecting error disabled
{
"name": "DE node",
"address": "192.168.1.1",
"port": 62050,
"api_port": 62051,
"status": "disabled",
"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

404

Node not found

422

Validation Error

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