移除插件安装设置
DELETE/v1/organizations/plugins/{plugin_id}/installation_settings/{target}
移除组织所有插件针对整个组织或某个 RBAC 组的自身安装设置。
移除 organization 目标会使插件恢复为其市场的默认安装设置,并保留各组的设置。移除某个组的设置会使该组成员回退到插件的组织范围设置或其所属其他组的设置。
如果目标没有自身的设置,则返回 404(已继承其市场默认设置的插件没有 organization 设置);成员所有的插件同样返回 404。
移除操作也算作插件的一次安装设置写入:请逐个发送所有此类写入请求。如果同一插件的多个请求同时到达,服务器会依次处理它们,并可能对其中一些返回 503 和 x-should-retry: true 而不应用;请等待一两秒后再次发送移除请求。重试时返回 404 表示该设置已被移除。
接受的凭据:具有 write:plugins 作用域的 Admin API 密钥。
每个请求都必须包含 beta 标头 anthropic-beta: ce-plugins-2026-09-01。缺少该标头的请求将返回 404,与端点不存在时完全相同。Plugins API 目前处于 beta 阶段,仅适用于 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.installationsettings.BetaDeletedPluginInstallationSetting;
import com.anthropic.models.beta.organization.plugins.installationsettings.InstallationSettingRemoveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
InstallationSettingRemoveParams params = InstallationSettingRemoveParams.builder()
.pluginId("plugin_id")
.target("target")
.build();
BetaDeletedPluginInstallationSetting betaDeletedPluginInstallationSetting = client.beta().organization().plugins().installationSettings().remove(params);
}
}Response 200
{
"plugin_id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"target": {
"rbac_group_id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
"type": "rbac_group"
},
"type": "plugin_installation_setting_deleted"
}Returns Examples
Response 200
{
"plugin_id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"target": {
"rbac_group_id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
"type": "rbac_group"
},
"type": "plugin_installation_setting_deleted"
}