21.3. changeInstallUser
指定したユーザーの情報を更新します。
PUT /api/v1/superuser/users/{username}
認可: oauth2_implicit (super:user)
パスパラメーター
| 型 | 名前 | 説明 | スキーマ |
|---|---|---|---|
| path |
username | 管理対象ユーザーのユーザー名 | string |
要求の body スキーマ (application/json)
ユーザー向けの更新の説明
| 名前 | 説明 | スキーマ |
|---|---|---|
|
password | ユーザーの新しいパスワード | string |
|
email | ユーザーの新しいメールアドレス | string |
|
enabled | ユーザーが有効かどうか | boolean |
レスポンス
| HTTP コード | 説明 | スキーマ |
|---|---|---|
| 200 | 正常な呼び出し | |
| 400 | Bad Request (不適切な要求) | |
| 401 | セッションが必要 | |
| 403 | 不正アクセス | |
| 404 | 見つからない |
コマンドの例
$ curl -X PUT "https://<quay-server.example.com>/api/v1/superuser/users/<username>" \
-H "Authorization: Bearer <bearer_token>" \
-H "Content-Type: application/json" \
-d '{
"password": "<N3wP@ssw0rd!>",
"email": "<updated-email@example.com>",
"enabled": true
}'