Add a new shard node

Add a new shard node

POST
/node/add
/node/add

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

endPoint
Required
string

connectionToken
Required
string

curl -X POST "https://api.t4b.top/node/add" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "endPoint": "string",
    "connectionToken": "string"
  }'

Ok

{
  "data": {
    "node": {
      "id": 1,
      "endPoint": "http://localhost:8080",
      "connectionToken": "token",
      "createdAt": "2021-01-01T00:00:00.000Z"
    }
  },
  "statusCode": 200
}