Class PluginUpdateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class PluginUpdateParams implements Params
Change which stored version of an organization-owned Plugin is served to members, for example to roll back to an earlier one. This pins the served version: later uploads through this API are stored but no longer change what is served, and pinning cannot currently be undone, here or in claude.ai.
A version from claude.ai might still change what is served: see /docs/en/manage-claude/plugins-api#versions-and-the-served-version in the Plugins API guide.
Pass the version as
served_version_id: an earlier one to roll back, a later one to start serving a version that was stored without being served, or the one already served to pin it without changing what is served. No new version is created.When the organization has content scanning enabled, a version whose
content_scan.statusisprocessingis refused with a 409 (error_codescan_pending; retry once the scan finishes). A version whosecontent_scan.statusiserrored, or whosecontent_scan.assessmentisfailorunknown, is refused with a 400 (error_codescan_failed); awarnis accepted. If the scan outcome cannot be read at that moment, the request fails with a retryable 503 instead. When the Plugin is in the organization's library marketplace, a version other than the one served is also refused with a 409 when an organization skill that this API does not list has since taken the name of one of its skills:error_codeskill_name_taken, with that name indetails.skill_name. A member-owned Plugin cannot be updated here (403).This endpoint does not write installation settings; they are written at
/v1/organizations/plugins/{plugin_id}/installation_settings/{target}.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 classPluginUpdateParams.BuilderA builder for PluginUpdateParams.
public final classPluginUpdateParams.BodyServe one of the Plugin's stored versions and pin the served version to it.
served_version_idis required and cannot benull.
-
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 StringservedVersionId()Serve this version of the Plugin (prefixed pluginver_) and pin the served version to it;latestis not accepted.final JsonField<String>_servedVersionId()Returns the raw JSON value of servedVersionId. 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 PluginUpdateParams.BuildertoBuilder()final PluginUpdateParams.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 PluginUpdateParams.Builderbuilder()Returns a mutable builder for constructing an instance of PluginUpdateParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
ce-plugins-2026-09-01in this header.
-
servedVersionId
final String servedVersionId()
Serve this version of the Plugin (prefixed
pluginver_) and pin the served version to it;latestis not accepted.
-
_servedVersionId
final JsonField<String> _servedVersionId()
Returns the raw JSON value of servedVersionId.
Unlike servedVersionId, 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 PluginUpdateParams.Builder toBuilder()
-
_body
final PluginUpdateParams.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.
-
builder
final static PluginUpdateParams.Builder builder()
Returns a mutable builder for constructing an instance of PluginUpdateParams.
The following fields are required:
.servedVersionId()
-
-
-
-