Class WebhookUpdateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class WebhookUpdateParams implements Params
Update an organization webhook endpoint. Only the fields you send are changed.
Every request must include the beta header
anthropic-beta: webhooks-2026-10-07. A request without it returns404, exactly as if this API did not exist. Anthropic turns organization webhook endpoints on for each organization; until yours is on, requests also return404. Organization webhook endpoints are in beta and are not available to organizations with HIPAA readiness enabled.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebhookUpdateParams.BuilderA builder for WebhookUpdateParams.
public final classWebhookUpdateParams.Bodypublic final classWebhookUpdateParams.EnabledEventpublic final classWebhookUpdateParams.Statedisabledstops deliveries.enabledresumes them and clearsdisabled_reason. Events that happen while the endpoint is disabled are never delivered.
-
Method Summary
Modifier and Type Method Description final Optional<String>webhookEndpointId()ID of the webhook endpoint. final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send webhooks-2026-10-07in this header.final Optional<String>description()Notes about the endpoint. final Optional<List<WebhookUpdateParams.EnabledEvent>>enabledEvents()The event types to deliver to the endpoint. final Optional<String>name()A short label for the endpoint. final Optional<WebhookUpdateParams.State>state()disabledstops deliveries.final Optional<String>url()The HTTPS URL that deliveries are sent to. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<List<WebhookUpdateParams.EnabledEvent>>_enabledEvents()Returns the raw JSON value of enabledEvents. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<WebhookUpdateParams.State>_state()Returns the raw JSON value of state. final JsonField<String>_url()Returns the raw JSON value of url. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final WebhookUpdateParams.BuildertoBuilder()final WebhookUpdateParams.Body_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebhookUpdateParamsnone()final static WebhookUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of WebhookUpdateParams. -
-
Method Detail
-
webhookEndpointId
final Optional<String> webhookEndpointId()
ID of the webhook endpoint.
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
webhooks-2026-10-07in this header.
-
description
final Optional<String> description()
Notes about the endpoint.
-
enabledEvents
final Optional<List<WebhookUpdateParams.EnabledEvent>> enabledEvents()
The event types to deliver to the endpoint. Replaces the whole set; an empty list leaves it unchanged.
-
state
final Optional<WebhookUpdateParams.State> state()
disabledstops deliveries.enabledresumes them and clearsdisabled_reason. Events that happen while the endpoint is disabled are never delivered.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_enabledEvents
final JsonField<List<WebhookUpdateParams.EnabledEvent>> _enabledEvents()
Returns the raw JSON value of enabledEvents.
Unlike enabledEvents, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<WebhookUpdateParams.State> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_url
final JsonField<String> _url()
Returns the raw JSON value of url.
Unlike url, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final WebhookUpdateParams.Builder toBuilder()
-
_body
final WebhookUpdateParams.Body _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
none
final static WebhookUpdateParams none()
-
builder
final static WebhookUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of WebhookUpdateParams.
-
-
-
-