---
title: "更新插件默认变量，支持批量"
method: PUT
path: "/v2/tenants/{tenant_name}/plugin/{plugin_id}/default-env"
tags: ["v2"]
---

# 更新插件默认变量，支持批量

`PUT /v2/tenants/{tenant_name}/plugin/{plugin_id}/default-env`

update default env

## Path parameters

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

## Request body

- object
  - `EVNInfo` PluginDefaultENV[], required — in: body
    - `env_name` string, required — 配置项名称 in: path
    - `env_value` string, required — 配置项值 in: path
    - `plugin_id` string — 对应插件id in: path

## 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

[Change history](https://skmtc.dev/goodrain/apis/untitled-api/changes/v2/tenants/:tenant_name/plugin/:plugin_id/default-env/put.md)

---

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