Class PluginCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class PluginCreateParams implements Params
Create an organization-owned Plugin and its first version by uploading the version's files.
The upload is
multipart/form-data: the version's files (files, each part sent asfiles[]), with an optionalmarketplace_idandrelease_notes. The manifest'snamebecomes the Plugin'sname, anddisplay_name,descriptionandmanifest_versioncome from the manifest too.namemay contain lowercase letters (from any alphabet), digits, and hyphens, up to 64 characters. Uppercase letters, spaces, underscores, and other punctuation are rejected.The
namemust be unique within the marketplace: a name already taken returns a 409 witherror_codeplugin_name_takenand, when a Plugin holds it, that Plugin's ID indetails.plugin_id. A Plugin going into the organization's library marketplace is also refused with a 409 when one of its skills has the name of an organization skill that this API does not list:error_codeskill_name_taken, with that name indetails.skill_name; rename the skill, or remove the organization skill in claude.ai. A 503 witherror_coderegistration_pendingmeans the Plugin and its version were stored (their IDs are indetails) but are not yet usable in claude.ai: do not retry the create (the retry would returnplugin_name_taken); create a version on the stored Plugin instead, which completes it.For a worked example, see /docs/en/manage-claude/plugins-api#create-a-plugin in the Plugins API guide.
Accepted credentials: an Admin API key with the
write:pluginsscope.Every request must include the beta header
anthropic-beta: ce-plugins-2026-09-01. A request without it returns404, exactly as if the endpoint did not exist. The Plugins API is in beta and is available to Claude Enterprise organizations only. It is not available to Claude Platform (Claude Console) organizations, or to organizations with HIPAA readiness enabled.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPluginCreateParams.BuilderA builder for PluginCreateParams.
public final classPluginCreateParams.Body
-
Method Summary
Modifier and Type Method Description final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send ce-plugins-2026-09-01in this header.final List<InputStream>files()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.zipor.pluginarchive holding them all.final Optional<String>marketplaceId()ID of the organization-owned plugin marketplace to create the Plugin in (prefixed marketplace_).final Optional<String>releaseNotes()Release notes stored with the version and shown in its version history in claude.ai; up to 5,000 characters. final MultipartField<List<InputStream>>_files()Returns the raw multipart value of files. final MultipartField<String>_marketplaceId()Returns the raw multipart value of marketplaceId. final MultipartField<String>_releaseNotes()Returns the raw multipart value of releaseNotes. 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 PluginCreateParams.BuildertoBuilder()final Map<String, MultipartField<?>>_body()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 PluginCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of PluginCreateParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
ce-plugins-2026-09-01in this header.
-
files
final List<InputStream> files()
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.zipor.pluginarchive holding them all. On the wire each part is namedfiles[], and a part named plainfilesis not read; with cURL,-F 'files[]=@SKILL.md;filename=skills/review-pr/SKILL.md'. The files must include the manifest,.claude-plugin/plugin.json.
-
marketplaceId
final Optional<String> marketplaceId()
ID of the organization-owned plugin marketplace to create the Plugin in (prefixed
marketplace_). It must be amanualmarketplace, 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-ownedmanualmarketplace created on first use.
-
releaseNotes
final Optional<String> releaseNotes()
Release notes stored with the version and shown in its version history in claude.ai; up to 5,000 characters.
-
_files
final MultipartField<List<InputStream>> _files()
Returns the raw multipart value of files.
Unlike files, this method doesn't throw if the multipart field has an unexpected type.
-
_marketplaceId
final MultipartField<String> _marketplaceId()
Returns the raw multipart value of marketplaceId.
Unlike marketplaceId, this method doesn't throw if the multipart field has an unexpected type.
-
_releaseNotes
final MultipartField<String> _releaseNotes()
Returns the raw multipart value of releaseNotes.
Unlike releaseNotes, this method doesn't throw if the multipart 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 PluginCreateParams.Builder toBuilder()
-
_body
final Map<String, MultipartField<?>> _body()
-
_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.
-
builder
final static PluginCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of PluginCreateParams.
The following fields are required:
.files()
-
-
-
-