---
title: "插件更新 全量更新，但pluginID和所在租户不提供修改"
method: PUT
path: "/v2/tenants/{tenant_name}/plugin/{plugin_id}"
tags: ["v2"]
---

# 插件更新 全量更新，但pluginID和所在租户不提供修改

`PUT /v2/tenants/{tenant_name}/plugin/{plugin_id}`

update plugin

## Path parameters

- `tenant_name` string, required
- `plugin_id` string, required

## Request body

- object
  - `build_model` string — 构建模式 in: body
  - `git_url` string — git地址 in: body
  - `image_local` string — 插件goodrain地址 in: body
  - `image_url` string — 插件docker地址 in: body
  - `plugin_cmd` string — 插件启动命令 in: body
  - `plugin_info` string — 插件用途描述 in: body
  - `plugin_model` string — 插件模式 in: body
  - `plugin_name` string — 插件名称 in: body
  - `repo` string — 带分支信息的git地址 in: body

## Response `default`

统一返回格式

- CommandResponse — unresolved $ref

---

[API](https://skmtc.net/goodrain/apis/untitled-api.md) · [All operations](https://skmtc.net/goodrain/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goodrain/untitled-api/revisions/8c773e222448/schema)
