# Admin API

Admin API uses certificate-based authentication. The client's certificate needs to be specified in the config or the http client in order to access the following operations.

# Get Node Config

Returns the current configuration of the node.

# Request

  • Method: GET
  • URL: /nodeconfig
  • Query parameters in URL: None

# Response

  • Success

    • Code: 200

    • Return value:

      • {
          "value": {
            "Node Config": "Configuration values used by the node at startup"
          },
          "atHeight": "Current block height of the request"
        }
        

# Update Node Config

Submits a new configuration for the node.

# Request

  • Method: PUT

  • URL: /nodeconfig

  • Query parameters in URL: None

  • Body:

    •   {
          "config": "the json of node config"
        }
      

# Response

  • Success
    • Code: 200
    • Return value:
      • {
          "value": {
            "Node Config": "Updated node config"
          },
          "atHeight": "Current block height of the request"
        }