Node

Add Node

Add a new node to the database and optionally add it as a host.

post/api/node

Request body

namestring required
addressstring required
portinteger
api_portinteger
usage_coefficientnumber
add_as_new_hostboolean

Example request

{
  "add_as_new_host": true,
  "address": "192.168.1.1",
  "api_port": 62051,
  "name": "DE node",
  "port": 62050,
  "usage_coefficient": 1
}

Response

Successful Response

namestring required
addressstring required
portinteger
api_portinteger
usage_coefficientnumber
idinteger required
xray_versionstring nullable
status'connected' | 'connecting' | 'error' | 'disabled' required
messagestring nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.