---
title: "更新凭据"
method: PUT
path: "/api/v1/config/ecsauthupdate"
tags: ["Config配置中心"]
---

# 更新凭据

`PUT /api/v1/config/ecsauthupdate`

## Request body

- ModelUpdateEcsAuthDto
  - `id` integer — ID
  - `name` string, required — 凭证名称
  - `password` string, required — 密码
  - `port` integer, required — 端口号
  - `publicKey` string — 公钥
  - `remark` string — 备注
  - `type` integer, required — 认证类型:1->密码
  - `username` string, required — 用户名

## Response `200`

OK

---

[API](https://skmtc.net/opsre/apis/devops.md) · [All operations](https://skmtc.net/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opsre/devops/versions/25cac8835c4c/schema)
