Update Webhook Endpoint
WebhookEndpoint webhooks().update(WebhookUpdateParamsparams = WebhookUpdateParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
POST/webhook_endpoints/{webhook_endpoint_id}
Update Webhook Endpoint
package com.openai.example;
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.webhooks.WebhookEndpoint;
import com.openai.models.webhooks.WebhookUpdateParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
OpenAIClient client = OpenAIOkHttpClient.fromEnv();
WebhookEndpoint webhookEndpoint = client.webhooks().update("whe_123");
}
}{
"id": "id",
"created_at": 0,
"event_types": [
"string"
],
"name": "name",
"object": "webhook_endpoint",
"signing_secret_hint": "signing_secret_hint",
"url": "url",
"updated_at": 0
}Returns Examples
{
"id": "id",
"created_at": 0,
"event_types": [
"string"
],
"name": "name",
"object": "webhook_endpoint",
"signing_secret_hint": "signing_secret_hint",
"url": "url",
"updated_at": 0
}