Class VersionCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class VersionCreateParams implements Params
Add a version to an organization-owned Plugin by uploading the new version's files; it becomes the version served to members unless the Plugin's served version has been pinned.
The upload is the same
multipart/form-dataas creating a Plugin: the version's files (files, each part sent asfiles[]) and optionalrelease_notes. The uploaded manifest'snamemust equal the Plugin'sname. Returns the stored version; read the Plugin back to see which version it serves.Only a Plugin in a
manualmarketplace takes uploads; a Plugin synchronized from a repository gets its versions from the repository. When the Plugin is in the organization's library marketplace, a version that adds a skill with the name of an organization skill that this API does not list is refused with a 409:error_codeskill_name_taken, with that name indetails.skill_name. A 503 witherror_coderegistration_pendingmeans the version was stored but is not yet usable; a later version create on the Plugin completes it.For a worked example, see /docs/en/manage-claude/plugins-api#create-a-version 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 classVersionCreateParams.BuilderA builder for VersionCreateParams.
public final classVersionCreateParams.Body
-
Method Summary
Modifier and Type Method Description final Optional<String>pluginId()ID of the Plugin (prefixed plugin_).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>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>_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 VersionCreateParams.BuildertoBuilder()final Map<String, MultipartField<?>>_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 VersionCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of VersionCreateParams. -
-
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.
-
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.
-
_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 VersionCreateParams.Builder toBuilder()
-
_body
final Map<String, MultipartField<?>> _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.
-
builder
final static VersionCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of VersionCreateParams.
The following fields are required:
.files()
-
-
-
-