プラグインインストール設定の設定
POST/v1/organizations/plugins/{plugin_id}/installation_settings/{target}
組織所有のプラグインについて、組織全体または1つのRBACグループに対するインストール設定を設定または変更します。
対象がすでに独自に保持している値を書き込んでも、何も変更されません。
メンバー所有のプラグインにはインストール設定の代わりに共有があるため、このパスはメンバー所有のプラグインに対して404を返します。
プラグインのインストール設定の書き込みは1つずつ送信してください。同じプラグインに対する複数の書き込みが同時に届いた場合、サーバーはそれらを順番に処理し、一部を適用せずに 503 で応答することがあります。その 503 には x-should-retry: true が含まれており、書き込みは安全に繰り返すことができます。1~2秒待ってから再送信してください。
受け入れられる認証情報: write:plugins スコープを持つAdmin APIキー。
すべてのリクエストにベータヘッダー anthropic-beta: ce-plugins-2026-09-01 を含める必要があります。含まれていないリクエストは、エンドポイントが存在しない場合とまったく同じく 404 を返します。Plugins APIはベータ版であり、Claude Enterprise組織のみが利用できます。Claude Platform(Claude Console)組織、またはHIPAA対応が有効になっている組織では利用できません。
Parameters
Returns
プラグインインストール設定の設定
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get(
"ANTHROPIC_API_KEY"
), # This is the default and can be omitted
)
beta_plugin_installation_setting = (
client.beta.organization.plugins.installation_settings.set(
target="target",
plugin_id="plugin_id",
installation_preference="required",
)
)
print(beta_plugin_installation_setting.plugin_id)Response 200
{
"created_at": "2026-03-14T09:26:53.589793Z",
"installation_preference": "required",
"plugin_id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"target": {
"type": "organization"
},
"type": "plugin_installation_setting",
"updated_at": "2026-03-14T09:26:53.589793Z"
}Returns Examples
Response 200
{
"created_at": "2026-03-14T09:26:53.589793Z",
"installation_preference": "required",
"plugin_id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"target": {
"type": "organization"
},
"type": "plugin_installation_setting",
"updated_at": "2026-03-14T09:26:53.589793Z"
}