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

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

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

## Request

- The document declares no server URL.
- Auth: none declared

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)

## Changes

- **2017-11-07** `5e3ca7f5dfc5`: 1 info
  - endpoint added
- **2017-11-07** `7b547fba71aa`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/changes/v2/tenants/:tenant_name/plugin/:plugin_id/put.md)

---

[API](https://skmtc.dev/goodrain/apis/goodrain-cmd-api.md) - [All operations](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/llms.txt) - [OpenAPI document](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/revisions/8c773e222448?raw)
