---
title: "添加团队 Skill (JSON)"
method: POST
path: "/api/v1/teams/skills"
tags: ["【Team 管理员】Skill 管理"]
---

# 添加团队 Skill (JSON)

`POST /api/v1/teams/skills`

## Request body

- DomainAddTeamSkillReq
  - `content` string, required — SKILL.md 原文
  - `description` string, required
  - `group_ids` string[]
  - `is_force_delivery` boolean
  - `name` string, required
  - `skill_md_path` string
  - `source_label` string
  - `source_type` string — SourceType ∈ {"zip","markdown","text"};SourceLabel 为文件名或 "粘贴文本"。 纯展示元数据,存进 active version 的 parsed_meta。
  - `tags` string[]

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainTeamSkill
    - `active_version` string
    - `categories` string[]
    - `content` string — SKILL.md 文本,从 active version 当时入库时记录
    - `created_at` integer
    - `description` string
    - `enabled` boolean
    - `groups` DomainSkillGroupRef[]
      - `id` string
      - `name` string
    - `id` string
    - `is_force_delivery` boolean
    - `name` string
    - `s3_key` string
    - `skill_md_path` string
    - `source_label` string
    - `source_type` string
    - `tags` string[]
    - `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/revisions/5a5929cb17f2/schema)
