---
title: "update login_method config"
method: PUT
path: "/admin/system/login_method"
tags: ["login_method"]
---

# update login_method config

`PUT /admin/system/login_method`

## Request body

- ModelAuth
  - `auth_infos` ModelAuthInfo[]
    - `button_desc` string
    - `config` ModelAuthConfig
      - `oauth` ModelAuthConfigOauth
        - `client_id` string
        - `client_secret` string
        - `corp_id` string
        - `url` string
    - `enable_register` boolean
    - `type` integer
  - `enable_register` boolean — Deprecated: move to AuthInfo, only use in migration
  - `need_review` boolean
  - `prompt` string
  - `public_access` boolean
  - `public_forum_ids` integer[] — Deprecated: only use in migration

## Response `200`

OK

- ContextResponse
  - `data` unknown
  - `err` string
  - `msg` string
  - `success` boolean
  - `trace_id` string

---

[API](https://skmtc.dev/chaitin/apis/koalaqa-api.md) · [All operations](https://skmtc.dev/chaitin/apis/koalaqa-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chaitin/koalaqa-api/revisions/29abcc05d9fd/schema)
