Files
sdk/docs/NodeAPIApi.md
zeekayandHanzo Dev b55332704a feat: Hanzo Cloud SDK for Kotlin (generated from OpenAPI v8.0.0)
Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and
Android. Generated with openapi-generator kotlin (library=jvm-okhttp4,
useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-25 07:10:32 -07:00

14 KiB

NodeAPIApi

All URIs are relative to https://api.hanzo.ai

Method HTTP request Description
cloudApiControllerAddNode POST /v1/cloud/add-node Api Controller Add Node
cloudApiControllerDeleteNode POST /v1/cloud/delete-node Api Controller Delete Node
cloudApiControllerGetNode GET /v1/cloud/get-node Api Controller Get Node
cloudApiControllerGetNodes GET /v1/cloud/get-nodes Api Controller Get Nodes
cloudApiControllerUpdateNode POST /v1/cloud/update-node Api Controller Update Node
nexusAddNode POST /v1/nexus/add-node add Node
nexusDeleteNode POST /v1/nexus/delete-node delete Node
nexusGetNode GET /v1/nexus/get-node get Node
nexusGetNodes GET /v1/nexus/get-nodes get Nodes
nexusUpdateNode POST /v1/nexus/update-node update Node

cloudApiControllerAddNode

CloudControllersResponse cloudApiControllerAddNode(cloudObjectNode)

Api Controller Add Node

add a node

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = NodeAPIApi()
val cloudObjectNode : CloudObjectNode =  // CloudObjectNode | The details of the node
try {
    val result : CloudControllersResponse = apiInstance.cloudApiControllerAddNode(cloudObjectNode)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NodeAPIApi#cloudApiControllerAddNode")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NodeAPIApi#cloudApiControllerAddNode")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
cloudObjectNode CloudObjectNode The details of the node

Return type

CloudControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

cloudApiControllerDeleteNode

CloudControllersResponse cloudApiControllerDeleteNode(cloudObjectNode)

Api Controller Delete Node

delete a node

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = NodeAPIApi()
val cloudObjectNode : CloudObjectNode =  // CloudObjectNode | The details of the node
try {
    val result : CloudControllersResponse = apiInstance.cloudApiControllerDeleteNode(cloudObjectNode)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NodeAPIApi#cloudApiControllerDeleteNode")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NodeAPIApi#cloudApiControllerDeleteNode")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
cloudObjectNode CloudObjectNode The details of the node

Return type

CloudControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

cloudApiControllerGetNode

CloudObjectNode cloudApiControllerGetNode(id)

Api Controller Get Node

get node

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = NodeAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id ( owner/name ) of the node
try {
    val result : CloudObjectNode = apiInstance.cloudApiControllerGetNode(id)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NodeAPIApi#cloudApiControllerGetNode")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NodeAPIApi#cloudApiControllerGetNode")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String The id ( owner/name ) of the node

Return type

CloudObjectNode

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

cloudApiControllerGetNodes

CloudObjectNode cloudApiControllerGetNodes(pageSize, p)

Api Controller Get Nodes

get all nodes

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = NodeAPIApi()
val pageSize : kotlin.String = pageSize_example // kotlin.String | The size of each page
val p : kotlin.String = p_example // kotlin.String | The number of the page
try {
    val result : CloudObjectNode = apiInstance.cloudApiControllerGetNodes(pageSize, p)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NodeAPIApi#cloudApiControllerGetNodes")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NodeAPIApi#cloudApiControllerGetNodes")
    e.printStackTrace()
}

Parameters

| pageSize | kotlin.String| The size of each page | |

Name Type Description Notes
p kotlin.String The number of the page

Return type

CloudObjectNode

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

cloudApiControllerUpdateNode

CloudControllersResponse cloudApiControllerUpdateNode(id, cloudObjectNode)

Api Controller Update Node

update node

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = NodeAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id ( owner/name ) of the node
val cloudObjectNode : CloudObjectNode =  // CloudObjectNode | The details of the node
try {
    val result : CloudControllersResponse = apiInstance.cloudApiControllerUpdateNode(id, cloudObjectNode)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NodeAPIApi#cloudApiControllerUpdateNode")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NodeAPIApi#cloudApiControllerUpdateNode")
    e.printStackTrace()
}

Parameters

| id | kotlin.String| The id ( owner/name ) of the node | |

Name Type Description Notes
cloudObjectNode CloudObjectNode The details of the node

Return type

CloudControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

nexusAddNode

NexusResponse nexusAddNode(nexusNode)

add Node

Add a node

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = NodeAPIApi()
val nexusNode : NexusNode =  // NexusNode | The details of the node
try {
    val result : NexusResponse = apiInstance.nexusAddNode(nexusNode)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NodeAPIApi#nexusAddNode")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NodeAPIApi#nexusAddNode")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
nexusNode NexusNode The details of the node

Return type

NexusResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

nexusDeleteNode

NexusResponse nexusDeleteNode(nexusNode)

delete Node

Delete a node

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = NodeAPIApi()
val nexusNode : NexusNode =  // NexusNode | The details of the node
try {
    val result : NexusResponse = apiInstance.nexusDeleteNode(nexusNode)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NodeAPIApi#nexusDeleteNode")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NodeAPIApi#nexusDeleteNode")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
nexusNode NexusNode The details of the node

Return type

NexusResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

nexusGetNode

NexusNode nexusGetNode(id)

get Node

Get a node

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = NodeAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id (owner/name) of the node
try {
    val result : NexusNode = apiInstance.nexusGetNode(id)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NodeAPIApi#nexusGetNode")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NodeAPIApi#nexusGetNode")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.String The id (owner/name) of the node

Return type

NexusNode

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

nexusGetNodes

NexusNode nexusGetNodes(pageSize, p)

get Nodes

Get all nodes

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = NodeAPIApi()
val pageSize : kotlin.String = pageSize_example // kotlin.String | The size of each page
val p : kotlin.String = p_example // kotlin.String | The page number
try {
    val result : NexusNode = apiInstance.nexusGetNodes(pageSize, p)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NodeAPIApi#nexusGetNodes")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NodeAPIApi#nexusGetNodes")
    e.printStackTrace()
}

Parameters

| pageSize | kotlin.String| The size of each page | |

Name Type Description Notes
p kotlin.String The page number

Return type

NexusNode

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

nexusUpdateNode

NexusResponse nexusUpdateNode(id, nexusNode)

update Node

Update a node

Example

// Import classes:
//import ai.hanzo.sdk.infrastructure.*
//import ai.hanzo.sdk.models.*

val apiInstance = NodeAPIApi()
val id : kotlin.String = id_example // kotlin.String | The id (owner/name) of the node
val nexusNode : NexusNode =  // NexusNode | The details of the node
try {
    val result : NexusResponse = apiInstance.nexusUpdateNode(id, nexusNode)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling NodeAPIApi#nexusUpdateNode")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling NodeAPIApi#nexusUpdateNode")
    e.printStackTrace()
}

Parameters

| id | kotlin.String| The id (owner/name) of the node | |

Name Type Description Notes
nexusNode NexusNode The details of the node

Return type

NexusResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json