Plugin-Marketplace aktualisieren
Legt die Standard-Installationseinstellung eines der eigenen Plugin-Marketplaces der Organisation fest. Jedes darin enthaltene Plugin ohne eigene Einstellung erhält diesen Standard als seine organisationsweite Einstellung, einschließlich später hinzugefügter Plugins.
Übergib ihn als default_installation_preference. Der persönliche Marketplace eines Mitglieds
kann hier nicht aktualisiert werden (403).
Akzeptierte Anmeldedaten: ein Admin-API-Key mit dem Scope write:plugins.
Jede Anfrage muss den Beta-Header anthropic-beta: ce-plugins-2026-09-01 enthalten. Eine Anfrage ohne ihn gibt 404 zurück, genau so, als ob der Endpunkt nicht existieren würde. Die Plugins API befindet sich in der Beta und ist nur für Claude Enterprise-Organisationen verfügbar. Sie ist nicht für Claude Platform (Claude Console)-Organisationen oder für Organisationen mit aktivierter HIPAA-Readiness verfügbar.
Parameters
Returns
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
betaPluginMarketplace, err := client.Beta.Organization.PluginMarketplaces.Update(
context.TODO(),
"marketplace_id",
anthropic.BetaOrganizationPluginMarketplaceUpdateParams{
DefaultInstallationPreference: anthropic.BetaOrganizationPluginMarketplaceUpdateParamsDefaultInstallationPreferenceAvailable,
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaPluginMarketplace.ID)
}{
"id": "marketplace_01HxQ3v9KpZ2mTn8RwLc4Ys7",
"created_at": "2026-03-14T09:26:53.589793Z",
"default_installation_preference": "available",
"last_sync_ended_at": "2026-03-14T09:26:53.589793Z",
"last_sync_read_sha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
"name": "engineering-tools",
"owner": {
"type": "organization"
},
"source": "github",
"sync_status": "success",
"type": "plugin_marketplace"
}Returns Examples
{
"id": "marketplace_01HxQ3v9KpZ2mTn8RwLc4Ys7",
"created_at": "2026-03-14T09:26:53.589793Z",
"default_installation_preference": "available",
"last_sync_ended_at": "2026-03-14T09:26:53.589793Z",
"last_sync_read_sha": "9fceb02d0ae598e95dc970b74767f19372d61af8",
"name": "engineering-tools",
"owner": {
"type": "organization"
},
"source": "github",
"sync_status": "success",
"type": "plugin_marketplace"
}