Class: Anthropic::Models::Beta::Organization::PluginCreateParams

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

Overview

See Also:

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

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(files:, marketplace_id: nil, release_notes: nil, betas: nil, request_options: {}) ⇒ PluginCreateParams

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::PluginCreateParams for more details.

Parameters:

  • files (Array<Pathname, StringIO, IO, String, Anthropic::FilePart>) —

    The version's files: one part per file, the part's filename being the file's pat

  • marketplace_id (String) (defaults to: nil) —

    ID of the organization-owned plugin marketplace to create the Plugin in (prefixe

  • release_notes (String) (defaults to: nil) —

    Release notes stored with the version and shown in its version history in claude

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

    This endpoint is in beta: requests must send ce-plugins-2026-09-01 in this hea

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • files: (::Array[Anthropic::Internal::file_input])
  • marketplace_id: (String) (defaults to: nil)
  • release_notes: (String) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/beta/organization/plugin_create_params.rb', line 47

Instance Attribute Details

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

This endpoint is in beta: requests must send ce-plugins-2026-09-01 in this header.

Parameters:

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

Returns:



45
# File 'lib/anthropic/models/beta/organization/plugin_create_params.rb', line 45

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

#files ⇒ Array<Pathname, StringIO, IO, String, Anthropic::FilePart>

The version's files: one part per file, the part's filename being the file's path within the Plugin (for example skills/review-pr/SKILL.md), or a single .zip or .plugin archive holding them all. On the wire each part is named files[], and a part named plain files is not read; with cURL, -F 'files[][email protected];filename=skills/review-pr/SKILL.md'. The files must include the manifest, .claude-plugin/plugin.json.

Parameters:

  • value (::Array[Anthropic::Internal::file_input])

Returns:



21
# File 'lib/anthropic/models/beta/organization/plugin_create_params.rb', line 21

required :files, Anthropic::Internal::Type::ArrayOf[Anthropic::Internal::Type::FileInput]

#marketplace_id ⇒ String?

ID of the organization-owned plugin marketplace to create the Plugin in (prefixed marketplace_). It must be a manual marketplace, one whose Plugins are uploaded rather than synchronized from a repository. When omitted, the Plugin is created in the organization's library marketplace, an organization-owned manual marketplace created on first use.

Parameters:

  • (String)

Returns:

  • (String, nil)


31
# File 'lib/anthropic/models/beta/organization/plugin_create_params.rb', line 31

optional :marketplace_id, String

#release_notes ⇒ String?

Release notes stored with the version and shown in its version history in claude.ai; up to 5,000 characters.

Parameters:

  • (String)

Returns:

  • (String, nil)


38
# File 'lib/anthropic/models/beta/organization/plugin_create_params.rb', line 38

optional :release_notes, String

Instance Method Details

#to_hash ⇒ { files: ::Array[Anthropic::Internal::file_input], marketplace_id: String, release_notes: String, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }

Returns:

  • ({ files: ::Array[Anthropic::Internal::file_input], marketplace_id: String, release_notes: String, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions })


42
43
44
45
46
47
48
# File 'sig/anthropic/models/beta/organization/plugin_create_params.rbs', line 42

def to_hash: -> {
  files: ::Array[Anthropic::Internal::file_input],
  marketplace_id: String,
  release_notes: String,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  request_options: Anthropic::RequestOptions
}