Files
sdk/docs/WebhooksApi.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

32 KiB

WebhooksApi

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

Method HTTP request Description
autoHandleWebhook POST /v1/auto/webhooks/{flowId} Receive incoming webhook for a flow trigger
autoHandleWebhookSync POST /v1/auto/webhooks/{flowId}/sync Receive webhook and wait for flow run result
flowHandleWebhook POST /v1/flow/webhooks/{flowId} Receive incoming webhook for a flow trigger
flowHandleWebhookSync POST /v1/flow/webhooks/{flowId}/sync Receive webhook and wait for flow run result
flowSimulateWebhook GET /v1/flow/webhooks/{flowId}/simulate Simulate a webhook to capture sample data
iamApiControllerAddWebhook POST /v1/iam/webhooks Api Controller Add Webhook
iamApiControllerDeleteWebhook DELETE /v1/iam/webhooks/{id} Api Controller Delete Webhook
iamApiControllerGetWebhook GET /v1/iam/webhooks/{id} Api Controller Get Webhook
iamApiControllerGetWebhooks GET /v1/iam/webhooks Api Controller Get Webhooks
iamApiControllerUpdateWebhook PUT /v1/iam/webhooks/{id} Api Controller Update Webhook
kmsCreateWebhook POST /v1/kms/webhooks Create a webhook
kmsDeleteWebhook DELETE /v1/kms/webhooks/{webhookId} Delete a webhook
kmsListWebhooks GET /v1/kms/webhooks List webhooks for a project
kmsTestWebhook POST /v1/kms/webhooks/{webhookId}/test Test a webhook
kmsUpdateWebhook PATCH /v1/kms/webhooks/{webhookId} Update a webhook
registryCreateWebhook POST /v1/registry/webhooks Create webhook
registryDeleteWebhook DELETE /v1/registry/webhooks/{id} Delete webhook
registryGetWebhook GET /v1/registry/webhooks/{id} Get webhook
registryListWebhooks GET /v1/registry/webhooks List webhooks
registryUpdateWebhook PUT /v1/registry/webhooks/{id} Update webhook
searchDeleteWebhooks DELETE /v1/search/webhooks Delete all webhooks
searchGetWebhooks GET /v1/search/webhooks Get webhook configuration
searchUpdateWebhooks PATCH /v1/search/webhooks Update webhook configuration

autoHandleWebhook

kotlin.Any autoHandleWebhook(flowId, body)

Receive incoming webhook for a flow trigger

Example

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

val apiInstance = WebhooksApi()
val flowId : kotlin.String = flowId_example // kotlin.String | 
val body : kotlin.Any = Object // kotlin.Any | 
try {
    val result : kotlin.Any = apiInstance.autoHandleWebhook(flowId, body)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#autoHandleWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#autoHandleWebhook")
    e.printStackTrace()
}

Parameters

| flowId | kotlin.String| | |

Name Type Description Notes
body kotlin.Any [optional]

Return type

kotlin.Any

Authorization

No authorization required

HTTP request headers

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

autoHandleWebhookSync

kotlin.Any autoHandleWebhookSync(flowId)

Receive webhook and wait for flow run result

Example

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

val apiInstance = WebhooksApi()
val flowId : kotlin.String = flowId_example // kotlin.String | 
try {
    val result : kotlin.Any = apiInstance.autoHandleWebhookSync(flowId)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#autoHandleWebhookSync")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#autoHandleWebhookSync")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
flowId kotlin.String

Return type

kotlin.Any

Authorization

No authorization required

HTTP request headers

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

flowHandleWebhook

kotlin.Any flowHandleWebhook(flowId, body)

Receive incoming webhook for a flow trigger

Example

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

val apiInstance = WebhooksApi()
val flowId : kotlin.String = flowId_example // kotlin.String | 
val body : kotlin.Any = Object // kotlin.Any | 
try {
    val result : kotlin.Any = apiInstance.flowHandleWebhook(flowId, body)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#flowHandleWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#flowHandleWebhook")
    e.printStackTrace()
}

Parameters

| flowId | kotlin.String| | |

Name Type Description Notes
body kotlin.Any [optional]

Return type

kotlin.Any

Authorization

No authorization required

HTTP request headers

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

flowHandleWebhookSync

kotlin.Any flowHandleWebhookSync(flowId, body)

Receive webhook and wait for flow run result

Example

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

val apiInstance = WebhooksApi()
val flowId : kotlin.String = flowId_example // kotlin.String | 
val body : kotlin.Any = Object // kotlin.Any | 
try {
    val result : kotlin.Any = apiInstance.flowHandleWebhookSync(flowId, body)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#flowHandleWebhookSync")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#flowHandleWebhookSync")
    e.printStackTrace()
}

Parameters

| flowId | kotlin.String| | |

Name Type Description Notes
body kotlin.Any [optional]

Return type

kotlin.Any

Authorization

No authorization required

HTTP request headers

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

flowSimulateWebhook

kotlin.Any flowSimulateWebhook(flowId)

Simulate a webhook to capture sample data

Example

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

val apiInstance = WebhooksApi()
val flowId : kotlin.String = flowId_example // kotlin.String | 
try {
    val result : kotlin.Any = apiInstance.flowSimulateWebhook(flowId)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#flowSimulateWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#flowSimulateWebhook")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
flowId kotlin.String

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

iamApiControllerAddWebhook

IamControllersResponse iamApiControllerAddWebhook(iamObjectWebhook)

Api Controller Add Webhook

add webhook

Example

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

val apiInstance = WebhooksApi()
val iamObjectWebhook : IamObjectWebhook =  // IamObjectWebhook | The details of the webhook
try {
    val result : IamControllersResponse = apiInstance.iamApiControllerAddWebhook(iamObjectWebhook)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#iamApiControllerAddWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#iamApiControllerAddWebhook")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
iamObjectWebhook IamObjectWebhook The details of the webhook

Return type

IamControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerDeleteWebhook

IamControllersResponse iamApiControllerDeleteWebhook(id, iamObjectWebhook)

Api Controller Delete Webhook

delete webhook

Example

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

val apiInstance = WebhooksApi()
val id : kotlin.String = id_example // kotlin.String | Resource identifier (owner/name)
val iamObjectWebhook : IamObjectWebhook =  // IamObjectWebhook | The details of the webhook
try {
    val result : IamControllersResponse = apiInstance.iamApiControllerDeleteWebhook(id, iamObjectWebhook)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#iamApiControllerDeleteWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#iamApiControllerDeleteWebhook")
    e.printStackTrace()
}

Parameters

| id | kotlin.String| Resource identifier (owner/name) | |

Name Type Description Notes
iamObjectWebhook IamObjectWebhook The details of the webhook

Return type

IamControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerGetWebhook

IamObjectWebhook iamApiControllerGetWebhook(id)

Api Controller Get Webhook

get webhook

Example

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

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

Parameters

Name Type Description Notes
id kotlin.String The id ( owner/name ) of the webhook [default to "built-in/admin"]

Return type

IamObjectWebhook

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerGetWebhooks

kotlin.collections.List<IamObjectWebhook> iamApiControllerGetWebhooks(owner)

Api Controller Get Webhooks

get webhooks

Example

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

val apiInstance = WebhooksApi()
val owner : kotlin.String = owner_example // kotlin.String | The owner of webhooks
try {
    val result : kotlin.collections.List<IamObjectWebhook> = apiInstance.iamApiControllerGetWebhooks(owner)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#iamApiControllerGetWebhooks")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#iamApiControllerGetWebhooks")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
owner kotlin.String The owner of webhooks [default to "built-in/admin"]

Return type

kotlin.collections.List<IamObjectWebhook>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

iamApiControllerUpdateWebhook

IamControllersResponse iamApiControllerUpdateWebhook(id, iamObjectWebhook)

Api Controller Update Webhook

update webhook

Example

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

val apiInstance = WebhooksApi()
val id : kotlin.String = id_example // kotlin.String | The id ( owner/name ) of the webhook
val iamObjectWebhook : IamObjectWebhook =  // IamObjectWebhook | The details of the webhook
try {
    val result : IamControllersResponse = apiInstance.iamApiControllerUpdateWebhook(id, iamObjectWebhook)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#iamApiControllerUpdateWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#iamApiControllerUpdateWebhook")
    e.printStackTrace()
}

Parameters

| id | kotlin.String| The id ( owner/name ) of the webhook | [default to "built-in/admin"] |

Name Type Description Notes
iamObjectWebhook IamObjectWebhook The details of the webhook

Return type

IamControllersResponse

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

kmsCreateWebhook

KmsCreateWebhook200Response kmsCreateWebhook(kmsCreateWebhookRequest)

Create a webhook

Example

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

val apiInstance = WebhooksApi()
val kmsCreateWebhookRequest : KmsCreateWebhookRequest =  // KmsCreateWebhookRequest | 
try {
    val result : KmsCreateWebhook200Response = apiInstance.kmsCreateWebhook(kmsCreateWebhookRequest)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#kmsCreateWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#kmsCreateWebhook")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
kmsCreateWebhookRequest KmsCreateWebhookRequest

Return type

KmsCreateWebhook200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

kmsDeleteWebhook

kotlin.Any kmsDeleteWebhook(webhookId)

Delete a webhook

Example

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

val apiInstance = WebhooksApi()
val webhookId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | 
try {
    val result : kotlin.Any = apiInstance.kmsDeleteWebhook(webhookId)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#kmsDeleteWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#kmsDeleteWebhook")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
webhookId java.util.UUID

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

kmsListWebhooks

KmsListWebhooks200Response kmsListWebhooks(workspaceId)

List webhooks for a project

Example

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

val apiInstance = WebhooksApi()
val workspaceId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | 
try {
    val result : KmsListWebhooks200Response = apiInstance.kmsListWebhooks(workspaceId)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#kmsListWebhooks")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#kmsListWebhooks")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
workspaceId java.util.UUID

Return type

KmsListWebhooks200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

kmsTestWebhook

kotlin.Any kmsTestWebhook(webhookId)

Test a webhook

Example

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

val apiInstance = WebhooksApi()
val webhookId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | 
try {
    val result : kotlin.Any = apiInstance.kmsTestWebhook(webhookId)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#kmsTestWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#kmsTestWebhook")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
webhookId java.util.UUID

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

kmsUpdateWebhook

KmsCreateWebhook200Response kmsUpdateWebhook(webhookId, kmsUpdateWebhookRequest)

Update a webhook

Example

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

val apiInstance = WebhooksApi()
val webhookId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID | 
val kmsUpdateWebhookRequest : KmsUpdateWebhookRequest =  // KmsUpdateWebhookRequest | 
try {
    val result : KmsCreateWebhook200Response = apiInstance.kmsUpdateWebhook(webhookId, kmsUpdateWebhookRequest)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#kmsUpdateWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#kmsUpdateWebhook")
    e.printStackTrace()
}

Parameters

| webhookId | java.util.UUID| | |

Name Type Description Notes
kmsUpdateWebhookRequest KmsUpdateWebhookRequest

Return type

KmsCreateWebhook200Response

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

registryCreateWebhook

kotlin.Any registryCreateWebhook(registryWebhookCreate)

Create webhook

Example

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

val apiInstance = WebhooksApi()
val registryWebhookCreate : RegistryWebhookCreate =  // RegistryWebhookCreate | 
try {
    val result : kotlin.Any = apiInstance.registryCreateWebhook(registryWebhookCreate)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#registryCreateWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#registryCreateWebhook")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
registryWebhookCreate RegistryWebhookCreate

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

registryDeleteWebhook

kotlin.Any registryDeleteWebhook(id)

Delete webhook

Example

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

val apiInstance = WebhooksApi()
val id : kotlin.Int = 56 // kotlin.Int | 
try {
    val result : kotlin.Any = apiInstance.registryDeleteWebhook(id)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#registryDeleteWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#registryDeleteWebhook")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.Int

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

registryGetWebhook

RegistryWebhook registryGetWebhook(id)

Get webhook

Example

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

val apiInstance = WebhooksApi()
val id : kotlin.Int = 56 // kotlin.Int | 
try {
    val result : RegistryWebhook = apiInstance.registryGetWebhook(id)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#registryGetWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#registryGetWebhook")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
id kotlin.Int

Return type

RegistryWebhook

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

registryListWebhooks

kotlin.collections.List<RegistryWebhook> registryListWebhooks(projectId, page, pageSize)

List webhooks

Example

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

val apiInstance = WebhooksApi()
val projectId : kotlin.Int = 56 // kotlin.Int | Filter by project ID
val page : kotlin.Int = 56 // kotlin.Int | 
val pageSize : kotlin.Int = 56 // kotlin.Int | 
try {
    val result : kotlin.collections.List<RegistryWebhook> = apiInstance.registryListWebhooks(projectId, page, pageSize)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#registryListWebhooks")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#registryListWebhooks")
    e.printStackTrace()
}

Parameters

| projectId | kotlin.Int| Filter by project ID | [optional] | | page | kotlin.Int| | [optional] [default to 1] |

Name Type Description Notes
pageSize kotlin.Int [optional] [default to 10]

Return type

kotlin.collections.List<RegistryWebhook>

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

registryUpdateWebhook

kotlin.Any registryUpdateWebhook(id, registryWebhookCreate)

Update webhook

Example

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

val apiInstance = WebhooksApi()
val id : kotlin.Int = 56 // kotlin.Int | 
val registryWebhookCreate : RegistryWebhookCreate =  // RegistryWebhookCreate | 
try {
    val result : kotlin.Any = apiInstance.registryUpdateWebhook(id, registryWebhookCreate)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#registryUpdateWebhook")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#registryUpdateWebhook")
    e.printStackTrace()
}

Parameters

| id | kotlin.Int| | |

Name Type Description Notes
registryWebhookCreate RegistryWebhookCreate

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

searchDeleteWebhooks

kotlin.collections.Map<kotlin.String, SearchWebhookResultsValue> searchDeleteWebhooks()

Delete all webhooks

Example

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

val apiInstance = WebhooksApi()
try {
    val result : kotlin.collections.Map<kotlin.String, SearchWebhookResultsValue> = apiInstance.searchDeleteWebhooks()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#searchDeleteWebhooks")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#searchDeleteWebhooks")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

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

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

searchGetWebhooks

kotlin.collections.Map<kotlin.String, SearchWebhookResultsValue> searchGetWebhooks()

Get webhook configuration

Example

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

val apiInstance = WebhooksApi()
try {
    val result : kotlin.collections.Map<kotlin.String, SearchWebhookResultsValue> = apiInstance.searchGetWebhooks()
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#searchGetWebhooks")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#searchGetWebhooks")
    e.printStackTrace()
}

Parameters

This endpoint does not need any parameter.

Return type

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

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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

searchUpdateWebhooks

kotlin.collections.Map<kotlin.String, SearchWebhookResultsValue> searchUpdateWebhooks(requestBody)

Update webhook configuration

Example

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

val apiInstance = WebhooksApi()
val requestBody : kotlin.collections.Map<kotlin.String, SearchWebhookSettingsValue> = Object // kotlin.collections.Map<kotlin.String, SearchWebhookSettingsValue> | 
try {
    val result : kotlin.collections.Map<kotlin.String, SearchWebhookResultsValue> = apiInstance.searchUpdateWebhooks(requestBody)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling WebhooksApi#searchUpdateWebhooks")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling WebhooksApi#searchUpdateWebhooks")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
requestBody kotlin.collections.Map<kotlin.String, SearchWebhookSettingsValue>

Return type

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

Authorization

Configure bearerAuth statically:

ApiClient.accessToken = ""

Configure bearerAuth dynamically:

apiInstance.accessTokenProvider = { "" }

HTTP request headers

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