Class: Anthropic::Models::Beta::Organization::WebhookCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/organization/webhook_create_params.rb,
sig/anthropic/models/beta/organization/webhook_create_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::Webhooks#create

Defined Under Namespace

Modules: EnabledEvent

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize ⇒ WebhookCreateParams

Returns a new instance of WebhookCreateParams.

Parameters:

  • enabled_events: (::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event])
  • url: (String)
  • description: (String)
  • name: (String)
  • betas: (::Array[Anthropic::Models::anthropic_beta])
  • request_options: (Anthropic::request_opts)


37
38
39
40
41
42
43
44
# File 'sig/anthropic/models/beta/organization/webhook_create_params.rbs', line 37

def initialize: (
  enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event],
  url: String,
  ?description: String,
  ?name: String,
  ?betas: ::Array[Anthropic::Models::anthropic_beta],
  ?request_options: Anthropic::request_opts
) -> void

Instance Attribute Details

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

This endpoint is in beta: requests must send webhooks-2026-10-07 in this header.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



42
# File 'lib/anthropic/models/beta/organization/webhook_create_params.rb', line 42

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#description ⇒ String?

Notes about the endpoint.

Parameters:

  • (String)

Returns:

  • (String, nil)


29
# File 'lib/anthropic/models/beta/organization/webhook_create_params.rb', line 29

optional :description, String

#enabled_events ⇒ Array<Symbol, Anthropic::Models::Beta::Organization::WebhookCreateParams::EnabledEvent>

The event types to deliver to the endpoint. Must list at least one.

Parameters:

  • value (::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event])

Returns:



16
17
# File 'lib/anthropic/models/beta/organization/webhook_create_params.rb', line 16

required :enabled_events,
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::WebhookCreateParams::EnabledEvent] }

#name ⇒ String?

A short label for the endpoint.

Parameters:

  • (String)

Returns:

  • (String, nil)


35
# File 'lib/anthropic/models/beta/organization/webhook_create_params.rb', line 35

optional :name, String

#url ⇒ String

The HTTPS URL that deliveries are sent to.

Parameters:

  • value (String)

Returns:

  • (String)


23
# File 'lib/anthropic/models/beta/organization/webhook_create_params.rb', line 23

required :url, String

Instance Method Details

#to_hash ⇒ { enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event], url: String, description: String, name: String, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }

Returns:

  • ({ enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event], url: String, description: String, name: String, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions })


46
47
48
49
50
51
52
53
# File 'sig/anthropic/models/beta/organization/webhook_create_params.rbs', line 46

def to_hash: -> {
  enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event],
  url: String,
  description: String,
  name: String,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  request_options: Anthropic::RequestOptions
}