/admin/oauth/clients/{client_id}Updates configuration of a specified OAuth client (redirect_uris, scopes, grant_types, name, status, JWKS, etc.).
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
client_id |
path |
string |
Yes | Client ID |
Schema: dto.UpdateClientRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
client_auth_methods |
array of string |
No | |||
fapi_profile |
string |
No | |||
grant_types |
array of string |
No | |||
is_confidential |
boolean |
No | |||
jwks |
string |
No | |||
jwks_uri |
string |
No | |||
logo_url |
string |
No | |||
name |
string |
No | |||
privacy_policy |
string |
No | |||
redirect_uris |
array of string |
No | |||
scopes |
array of string |
No | |||
status |
string |
No | |||
terms_url |
string |
No | |||
website |
string |
No |
| Status | Description | Schema |
|---|---|---|
| 200 | Update successful | dto.OAuthClientItemDetailResponse |
| 400 | Invalid request parameters | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 401 | Unauthenticated: provide a valid Bearer Token | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 403 | Insufficient permissions: administrator role required | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 404 | Client not found | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 500 | Internal server error | gitee_com_linmes_authms_base_dto.SimpleResponse |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
client_auth_methods |
string |
No | ["client_secret_basic","private_key_jwt"] |
||
client_id |
string |
No | app-123 |
||
cors_origins |
array of string |
No | ['["https://app.example.com"]'] |
||
created_at |
string |
No | 2026-04-15T10:30:00Z |
||
deleted_at |
string |
No | |||
fapi_profile |
string |
No | fapi1 |
||
grant_types |
array of string |
No | ['["authorization_code"]'] |
||
id |
string |
No | client_abc123 |
||
is_confidential |
boolean |
No | True |
||
jwks_uri |
string |
No | https://client.example.com/.well-known/jwks.json |
||
logo_url |
string |
No | https://app.example.com/logo.png |
||
name |
string |
No | My App |
||
privacy_policy |
string |
No | https://app.example.com/privacy |
||
redirect_uris |
array of string |
No | ['["https://app.example.com/callback"]'] |
||
scopes |
array of string |
No | ['["openid"', '"profile"]'] |
||
secret_last_four |
string |
No | bcde |
||
status |
string |
No | active |
||
tenant_id |
string |
No | tenant_abc123 |
||
terms_url |
string |
No | https://app.example.com/terms |
||
updated_at |
string |
No | 2026-04-15T10:30:00Z |
||
website |
string |
No | https://app.example.com |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.OAuthClientItem |
No | |||
message |
string |
No | |||
timestamp |
string |
No |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
message |
string |
No | |||
timestamp |
string |
No |