---
title: "更新团队模型配置"
method: PUT
path: "/api/v1/teams/models/{model_id}"
tags: ["【Team 管理员】模型管理"]
---

# 更新团队模型配置

`PUT /api/v1/teams/models/{model_id}`

更新团队模型配置

## Path parameters

- `model_id` string, required

## Request body

- DomainUpdateTeamModelReq
  - `api_key` string
  - `base_url` string
  - `group_ids` string[]
  - `interface_type` 'openai_chat' | 'openai_responses' | 'anthropic'
  - `model` string
  - `provider` string
  - `remark` string
  - `support_image` boolean
  - `temperature` number

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainTeamModel
    - `api_key` string
    - `base_url` string
    - `created_at` integer
    - `groups` DomainTeamGroup[]
      - `created_at` integer
      - `id` string
      - `name` string
      - `updated_at` integer
      - `users` DomainUser[]
        - `avatar_url` string
        - `email` string
        - `has_password` boolean
        - `id` string
        - `identities` DomainUserIdentity[]
          - `avatar_url` string
          - `email` string
          - `id` string
          - `identity_id` string
          - `platform` 'baizhi' | 'google' | 'github' | 'gitlab' | 'gitea' | 'gitee' | 'oidc'
          - `username` string
        - `is_blocked` boolean
        - `name` string
        - `role` 'individual' | 'enterprise' | 'subaccount' | 'admin' | 'gittask'
        - `status` 'active' | 'inactive' | 'banded'
        - `team` DomainTeam
          - `id` string
          - `name` string
        - `token` string
        - `wechat_mp_bound` boolean
    - `id` string
    - `interface_type` 'openai_chat' | 'openai_responses' | 'anthropic'
    - `is_hidden` boolean
    - `last_check_at` integer
    - `last_check_error` string
    - `last_check_success` boolean
    - `model` string
    - `provider` string
    - `remark` string
    - `support_image` boolean
    - `temperature` number
    - `updated_at` integer
  - `message` string

## Other responses

- `401` — 未授权
- `500` — 服务器内部错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/versions/5a5929cb17f2/schema)
