NoxVR Documentation
Relays

Update relay

Update the relay information and instances.

POST
/relays/update
max_instancesinteger
portinteger
use_addressstring
clients
instances

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://nox.hactazia.fr/api/relays/update" \  -H "Content-Type: application/json" \  -d '{    "max_instances": 0,    "port": 0,    "use_address": "string",    "clients": [      {        "id": 0,        "remote": "string",        "status": "string",        "platform": "string",        "engine": "string",        "last_seen": 0      }    ],    "instances": [      {        "internal_id": 0,        "master_id": 0,        "flags": 0,        "players": [          {            "id": 0,            "client_id": 0,            "display": "string",            "flags": 0,            "status": 0,            "created_at": 0          }        ],        "max_players": 0      }    ]  }'
{
  "relay": 0,
  "server": "string",
  "next_update": 0,
  "instances": [
    {
      "master_id": 0,
      "capacity": 0,
      "password": "string",
      "flags": 0,
      "world_ref": "string"
    }
  ]
}
{
  "error": {
    "message": "Invalid field: limit, must be between 1 and 100.",
    "code": 5,
    "status": 400
  }
}
{
  "error": {
    "message": "Invalid field: limit, must be between 1 and 100.",
    "code": 5,
    "status": 400
  }
}
{
  "error": {
    "message": "Invalid field: limit, must be between 1 and 100.",
    "code": 5,
    "status": 400
  }
}