All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| createWebhookSettings | POST /v1/webhooks/settings | Create webhook |
| createWebhookSettingsWithHttpInfo | POST /v1/webhooks/settings | Create webhook |
| deleteWebhookSettings | DELETE /v1/webhooks/settings | Delete webhook |
| deleteWebhookSettingsWithHttpInfo | DELETE /v1/webhooks/settings | Delete webhook |
| getWebhookLogs | GET /v1/webhooks/logs | List webhook delivery logs |
| getWebhookLogsWithHttpInfo | GET /v1/webhooks/logs | List webhook delivery logs |
| getWebhookSettings | GET /v1/webhooks/settings | List webhooks |
| getWebhookSettingsWithHttpInfo | GET /v1/webhooks/settings | List webhooks |
| testWebhook | POST /v1/webhooks/test | Send test webhook |
| testWebhookWithHttpInfo | POST /v1/webhooks/test | Send test webhook |
| updateWebhookSettings | PUT /v1/webhooks/settings | Update webhook |
| updateWebhookSettingsWithHttpInfo | PUT /v1/webhooks/settings | Update webhook |
UpdateWebhookSettings200Response createWebhookSettings(createWebhookSettingsRequest)
Create webhook
Create a new webhook configuration. Maximum 10 webhooks per user. `name`, `url` and `events` are required. `url` must be a valid URL and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. Webhooks are automatically disabled after 10 consecutive delivery failures.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
CreateWebhookSettingsRequest createWebhookSettingsRequest = new CreateWebhookSettingsRequest(); // CreateWebhookSettingsRequest |
try {
UpdateWebhookSettings200Response result = apiInstance.createWebhookSettings(createWebhookSettingsRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#createWebhookSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| createWebhookSettingsRequest | CreateWebhookSettingsRequest |
UpdateWebhookSettings200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhook created successfully | - |
| 400 | Validation error or maximum webhooks reached | - |
| 401 | Unauthorized | - |
ApiResponse createWebhookSettings createWebhookSettingsWithHttpInfo(createWebhookSettingsRequest)
Create webhook
Create a new webhook configuration. Maximum 10 webhooks per user. `name`, `url` and `events` are required. `url` must be a valid URL and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. Webhooks are automatically disabled after 10 consecutive delivery failures.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
CreateWebhookSettingsRequest createWebhookSettingsRequest = new CreateWebhookSettingsRequest(); // CreateWebhookSettingsRequest |
try {
ApiResponse<UpdateWebhookSettings200Response> response = apiInstance.createWebhookSettingsWithHttpInfo(createWebhookSettingsRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#createWebhookSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| createWebhookSettingsRequest | CreateWebhookSettingsRequest |
ApiResponse<UpdateWebhookSettings200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhook created successfully | - |
| 400 | Validation error or maximum webhooks reached | - |
| 401 | Unauthorized | - |
UpdateYoutubeDefaultPlaylist200Response deleteWebhookSettings(id)
Delete webhook
Permanently delete a webhook configuration.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
String id = "id_example"; // String | Webhook ID to delete
try {
UpdateYoutubeDefaultPlaylist200Response result = apiInstance.deleteWebhookSettings(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#deleteWebhookSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Webhook ID to delete |
UpdateYoutubeDefaultPlaylist200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhook deleted successfully | - |
| 400 | Webhook ID required | - |
| 401 | Unauthorized | - |
ApiResponse deleteWebhookSettings deleteWebhookSettingsWithHttpInfo(id)
Delete webhook
Permanently delete a webhook configuration.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
String id = "id_example"; // String | Webhook ID to delete
try {
ApiResponse<UpdateYoutubeDefaultPlaylist200Response> response = apiInstance.deleteWebhookSettingsWithHttpInfo(id);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#deleteWebhookSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Webhook ID to delete |
ApiResponse<UpdateYoutubeDefaultPlaylist200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhook deleted successfully | - |
| 400 | Webhook ID required | - |
| 401 | Unauthorized | - |
GetWebhookLogs200Response getWebhookLogs(limit, skip, status, event, webhookId, eventId)
List webhook delivery logs
Retrieve recorded webhook delivery attempts for the authenticated user, most recent first. Logs are retained for 30 days. Supports filtering by status, event type, webhook ID, and event ID, plus offset-based pagination.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
Integer limit = 50; // Integer | Maximum number of logs to return
Integer skip = 0; // Integer | Number of logs to skip (offset-based pagination)
String status = "success"; // String | Filter by delivery outcome
String event = "event_example"; // String | Filter by event type (e.g. post.published)
String webhookId = "webhookId_example"; // String | Filter by webhook configuration ID
String eventId = "eventId_example"; // String | Filter by stable webhook event ID
try {
GetWebhookLogs200Response result = apiInstance.getWebhookLogs(limit, skip, status, event, webhookId, eventId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#getWebhookLogs");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | Maximum number of logs to return | [optional] [default to 50] |
| skip | Integer | Number of logs to skip (offset-based pagination) | [optional] [default to 0] |
| status | String | Filter by delivery outcome | [optional] [enum: success, failed] |
| event | String | Filter by event type (e.g. post.published) | [optional] |
| webhookId | String | Filter by webhook configuration ID | [optional] |
| eventId | String | Filter by stable webhook event ID | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhook logs retrieved successfully | - |
| 400 | Invalid query parameter | - |
| 401 | Unauthorized | - |
ApiResponse getWebhookLogs getWebhookLogsWithHttpInfo(limit, skip, status, event, webhookId, eventId)
List webhook delivery logs
Retrieve recorded webhook delivery attempts for the authenticated user, most recent first. Logs are retained for 30 days. Supports filtering by status, event type, webhook ID, and event ID, plus offset-based pagination.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
Integer limit = 50; // Integer | Maximum number of logs to return
Integer skip = 0; // Integer | Number of logs to skip (offset-based pagination)
String status = "success"; // String | Filter by delivery outcome
String event = "event_example"; // String | Filter by event type (e.g. post.published)
String webhookId = "webhookId_example"; // String | Filter by webhook configuration ID
String eventId = "eventId_example"; // String | Filter by stable webhook event ID
try {
ApiResponse<GetWebhookLogs200Response> response = apiInstance.getWebhookLogsWithHttpInfo(limit, skip, status, event, webhookId, eventId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#getWebhookLogs");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | Maximum number of logs to return | [optional] [default to 50] |
| skip | Integer | Number of logs to skip (offset-based pagination) | [optional] [default to 0] |
| status | String | Filter by delivery outcome | [optional] [enum: success, failed] |
| event | String | Filter by event type (e.g. post.published) | [optional] |
| webhookId | String | Filter by webhook configuration ID | [optional] |
| eventId | String | Filter by stable webhook event ID | [optional] |
ApiResponse<GetWebhookLogs200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhook logs retrieved successfully | - |
| 400 | Invalid query parameter | - |
| 401 | Unauthorized | - |
GetWebhookSettings200Response getWebhookSettings()
List webhooks
Retrieve all configured webhooks for the authenticated user. Supports up to 10 webhooks per user.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
try {
GetWebhookSettings200Response result = apiInstance.getWebhookSettings();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#getWebhookSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhooks retrieved successfully | - |
| 401 | Unauthorized | - |
ApiResponse getWebhookSettings getWebhookSettingsWithHttpInfo()
List webhooks
Retrieve all configured webhooks for the authenticated user. Supports up to 10 webhooks per user.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
try {
ApiResponse<GetWebhookSettings200Response> response = apiInstance.getWebhookSettingsWithHttpInfo();
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#getWebhookSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}This endpoint does not need any parameter.
ApiResponse<GetWebhookSettings200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhooks retrieved successfully | - |
| 401 | Unauthorized | - |
UnpublishPost200Response testWebhook(testWebhookRequest)
Send test webhook
Send a test webhook to verify your endpoint is configured correctly. The test payload includes event: "webhook.test" to distinguish it from real events.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
TestWebhookRequest testWebhookRequest = new TestWebhookRequest(); // TestWebhookRequest |
try {
UnpublishPost200Response result = apiInstance.testWebhook(testWebhookRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#testWebhook");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| testWebhookRequest | TestWebhookRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Test webhook sent successfully | - |
| 400 | Webhook ID required | - |
| 401 | Unauthorized | - |
| 500 | Test webhook failed to deliver | - |
ApiResponse testWebhook testWebhookWithHttpInfo(testWebhookRequest)
Send test webhook
Send a test webhook to verify your endpoint is configured correctly. The test payload includes event: "webhook.test" to distinguish it from real events.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
TestWebhookRequest testWebhookRequest = new TestWebhookRequest(); // TestWebhookRequest |
try {
ApiResponse<UnpublishPost200Response> response = apiInstance.testWebhookWithHttpInfo(testWebhookRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#testWebhook");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| testWebhookRequest | TestWebhookRequest |
ApiResponse<UnpublishPost200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Test webhook sent successfully | - |
| 400 | Webhook ID required | - |
| 401 | Unauthorized | - |
| 500 | Test webhook failed to deliver | - |
UpdateWebhookSettings200Response updateWebhookSettings(updateWebhookSettingsRequest)
Update webhook
Update an existing webhook configuration. All fields except `_id` are optional; only provided fields will be updated. When provided, `name` must be 1-50 characters, `url` must be a valid URL, and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. Webhooks are automatically disabled after 10 consecutive delivery failures.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
UpdateWebhookSettingsRequest updateWebhookSettingsRequest = new UpdateWebhookSettingsRequest(); // UpdateWebhookSettingsRequest |
try {
UpdateWebhookSettings200Response result = apiInstance.updateWebhookSettings(updateWebhookSettingsRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#updateWebhookSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| updateWebhookSettingsRequest | UpdateWebhookSettingsRequest |
UpdateWebhookSettings200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhook updated successfully | - |
| 400 | Validation error or missing webhook ID | - |
| 401 | Unauthorized | - |
| 404 | Webhook not found | - |
ApiResponse updateWebhookSettings updateWebhookSettingsWithHttpInfo(updateWebhookSettingsRequest)
Update webhook
Update an existing webhook configuration. All fields except `_id` are optional; only provided fields will be updated. When provided, `name` must be 1-50 characters, `url` must be a valid URL, and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. Webhooks are automatically disabled after 10 consecutive delivery failures.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
UpdateWebhookSettingsRequest updateWebhookSettingsRequest = new UpdateWebhookSettingsRequest(); // UpdateWebhookSettingsRequest |
try {
ApiResponse<UpdateWebhookSettings200Response> response = apiInstance.updateWebhookSettingsWithHttpInfo(updateWebhookSettingsRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#updateWebhookSettings");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| updateWebhookSettingsRequest | UpdateWebhookSettingsRequest |
ApiResponse<UpdateWebhookSettings200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Webhook updated successfully | - |
| 400 | Validation error or missing webhook ID | - |
| 401 | Unauthorized | - |
| 404 | Webhook not found | - |