/admin/oauth/providers/{name}/toggleEnables or disables a specified OAuth provider. Admin only.
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
name |
path |
string |
Yes | Provider name |
Schema: dto.AdminToggleProviderRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
enabled |
boolean |
No |
| Status | Description | Schema |
|---|---|---|
| 200 | Operation successful | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 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 | Provider 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 |
|---|---|---|---|---|---|
code |
integer |
No | |||
message |
string |
No | |||
timestamp |
string |
No |