Claude Platform Docs

プラグインバージョンの作成

$client->beta->organization->plugins->versions->create(string pluginID, list<FileParam | string> files, ?string releaseNotes, ?list<AnthropicBeta> betas): BetaPluginVersion
POST/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

新しいバージョンのファイルをアップロードして、組織所有のプラグインにバージョンを追加します。プラグインの提供バージョンが固定されていない限り、追加したバージョンがメンバーに提供されるバージョンになります。

アップロードはプラグイン作成時と同じ 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
pluginID: string⁠Path parameter

ID of the Plugin (prefixed plugin_).

files: list<FileParam | string>

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[]=@SKILL.md;filename=skills/review-pr/SKILL.md'. The files must include the manifest, .claude-plugin/plugin.json.

releaseNotes?: optional string

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

betas?: optional list<AnthropicBeta>⁠Header parameter

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

Returns
class BetaPluginVersion { $type = 'plugin_version'; $id; $components; /* 9 more */ }
プラグインバージョンの作成
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;
use Anthropic\Core\FileParam;

$client = new Client(apiKey: 'my-anthropic-api-key');

$betaPluginVersion = $client->beta->organization->plugins->versions->create(
  'plugin_id',
  files: [
    FileParam::fromString('Example data', filename: uniqid('file-upload-', true)),
  ],
  releaseNotes: 'release_notes',
  betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24],
);

var_dump($betaPluginVersion);
Returns Examples
Response 200
{
  "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_01WxYzAbCdEfGhJkMnPqRsTu"
  },
  "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"
}