Files
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

6.2 KiB

HashApi

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

Method HTTP request Description
kvHashDeleteField DELETE /v1/kv/hash/{key}/{field} Delete hash field
kvHashGetAll GET /v1/kv/hash/{key} Get all hash fields
kvHashGetField GET /v1/kv/hash/{key}/{field} Get hash field
kvHashSet PUT /v1/kv/hash/{key} Set hash fields

kvHashDeleteField

kotlin.Any kvHashDeleteField(key, field, namespace)

Delete hash field

Example

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

val apiInstance = HashApi()
val key : kotlin.String = key_example // kotlin.String | 
val `field` : kotlin.String = `field`_example // kotlin.String | 
val namespace : kotlin.String = namespace_example // kotlin.String | 
try {
    val result : kotlin.Any = apiInstance.kvHashDeleteField(key, `field`, namespace)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling HashApi#kvHashDeleteField")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling HashApi#kvHashDeleteField")
    e.printStackTrace()
}

Parameters

| key | kotlin.String| | | | `field` | kotlin.String| | |

Name Type Description Notes
namespace kotlin.String [optional]

Return type

kotlin.Any

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

kvHashGetAll

kotlin.collections.Map<kotlin.String, kotlin.String> kvHashGetAll(key, namespace)

Get all hash fields

Example

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

val apiInstance = HashApi()
val key : kotlin.String = key_example // kotlin.String | 
val namespace : kotlin.String = namespace_example // kotlin.String | 
try {
    val result : kotlin.collections.Map<kotlin.String, kotlin.String> = apiInstance.kvHashGetAll(key, namespace)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling HashApi#kvHashGetAll")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling HashApi#kvHashGetAll")
    e.printStackTrace()
}

Parameters

| key | kotlin.String| | |

Name Type Description Notes
namespace kotlin.String [optional]

Return type

kotlin.collections.Map<kotlin.String, kotlin.String>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

kvHashGetField

KmsKmsGetOrgSecret200ResponseSecret kvHashGetField(key, field, namespace)

Get hash field

Example

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

val apiInstance = HashApi()
val key : kotlin.String = key_example // kotlin.String | 
val `field` : kotlin.String = `field`_example // kotlin.String | 
val namespace : kotlin.String = namespace_example // kotlin.String | 
try {
    val result : KmsKmsGetOrgSecret200ResponseSecret = apiInstance.kvHashGetField(key, `field`, namespace)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling HashApi#kvHashGetField")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling HashApi#kvHashGetField")
    e.printStackTrace()
}

Parameters

| key | kotlin.String| | | | `field` | kotlin.String| | |

Name Type Description Notes
namespace kotlin.String [optional]

Return type

KmsKmsGetOrgSecret200ResponseSecret

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

kvHashSet

kotlin.Any kvHashSet(key, requestBody, namespace)

Set hash fields

Example

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

val apiInstance = HashApi()
val key : kotlin.String = key_example // kotlin.String | 
val requestBody : kotlin.collections.Map<kotlin.String, kotlin.String> = Object // kotlin.collections.Map<kotlin.String, kotlin.String> | 
val namespace : kotlin.String = namespace_example // kotlin.String | 
try {
    val result : kotlin.Any = apiInstance.kvHashSet(key, requestBody, namespace)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling HashApi#kvHashSet")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling HashApi#kvHashSet")
    e.printStackTrace()
}

Parameters

| key | kotlin.String| | | | requestBody | kotlin.collections.Map<kotlin.String, kotlin.String>| | |

Name Type Description Notes
namespace kotlin.String [optional]

Return type

kotlin.Any

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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