プラグインバージョンの作成
新しいバージョンのファイルをアップロードして、組織所有のプラグインにバージョンを追加します。プラグインの提供バージョンが固定されていない限り、追加したバージョンがメンバーに提供されるバージョンになります。
アップロードはプラグイン作成時と同じ multipart/form-data で、バージョンのファイル(files。各パートは files[] として送信)と任意の release_notes を含みます。アップロードするマニフェストの name はプラグインの name と一致している必要があります。保存されたバージョンが返されます。どのバージョンが提供されているかを確認するには、プラグインを再度取得してください。
アップロードを受け付けるのは manual マーケットプレイスにあるプラグインのみです。リポジトリから同期されたプラグインは、リポジトリからバージョンを取得します。プラグインが組織のライブラリマーケットプレイスにある場合、組織スキル(管理者がclaude.aiで組織全体向けにアップロードしたスキル)と同じ名前のスキルを追加するバージョンは409で拒否されます。error_code は skill_name_taken で、その名前は details.skill_name に含まれます。error_code が registration_pending の503は、バージョンは保存されたもののまだ使用できないことを意味します。そのプラグインで後からバージョンを作成すると完了します。
具体例については、Plugins APIガイドのバージョンの作成を参照してください。
受け入れられる認証情報: write:plugins スコープを持つAdmin APIキー。
すべてのリクエストにベータヘッダー anthropic-beta: ce-plugins-2026-09-01 を含める必要があります。含まれていないリクエストは、エンドポイントが存在しない場合とまったく同じく 404 を返します。Plugins APIはベータ版であり、Claude Enterprise組織のみが利用できます。Claude Platform(Claude Console)組織、またはHIPAA対応が有効になっている組織では利用できません。
Parameters
Returns
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.plugins.versions.BetaPluginVersion;
import com.anthropic.models.beta.organization.plugins.versions.VersionCreateParams;
import java.io.ByteArrayInputStream;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
VersionCreateParams params = VersionCreateParams.builder()
.pluginId("plugin_id")
.addFile(new ByteArrayInputStream("Example data".getBytes()))
.build();
BetaPluginVersion betaPluginVersion = client.beta().organization().plugins().versions().create(params);
}
}{
"id": "pluginver_01KaZmQpRsTuVwXyZ2b4c6d8",
"components": [
{
"description": "description",
"name": "review-pr",
"type": "skill"
}
],
"content_scan": {
"assessment": "warn",
"reason": "credential-exposure",
"status": "completed"
},
"created_at": "2026-03-14T09:26:53.589793Z",
"created_by": {
"email_address": "user@example.com",
"type": "user_actor",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"description": "Reviews pull requests against your team's conventions.",
"display_name": "Code Review Helper",
"manifest_version": "1.2.0",
"plugin_id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"reach": "contained",
"release_notes": "Adds a review checklist for database migrations.",
"type": "plugin_version"
}Returns Examples
{
"id": "pluginver_01KaZmQpRsTuVwXyZ2b4c6d8",
"components": [
{
"description": "description",
"name": "review-pr",
"type": "skill"
}
],
"content_scan": {
"assessment": "warn",
"reason": "credential-exposure",
"status": "completed"
},
"created_at": "2026-03-14T09:26:53.589793Z",
"created_by": {
"email_address": "user@example.com",
"type": "user_actor",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
},
"description": "Reviews pull requests against your team's conventions.",
"display_name": "Code Review Helper",
"manifest_version": "1.2.0",
"plugin_id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"reach": "contained",
"release_notes": "Adds a review checklist for database migrations.",
"type": "plugin_version"
}