---
title: "Patch Skill"
method: PATCH
path: "/skills/{name}"
tags: ["skills"]
---

# Patch Skill

`PATCH /skills/{name}`

## Request

- Base URL: `https://api.agent4.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.agent4.io/skills/{name}`
- Auth: none declared

局部更新。404 而不是创建：PATCH 一个不存在的技能是名字写错了。

## Path parameters

- `name` string, required

## Request body

- SkillPatch: 只改传来的字段。理由同 AgentPatch：PUT 是整体替换，一个漏掉 instructions 的 PUT 会把技能的正文清空。 `tools_add`/`tools_remove` 是增量语义（同 AgentPatch）：`tools=[...]` 整表替换， 想"加/删一个"用增量，免得把没读到的其它项挤掉。幂等。
  - `description` string, nullable
  - `instructions` string, nullable
  - `tools` string[], nullable
  - `tools_add` string[], nullable
  - `tools_remove` string[], nullable
  - `knowledge_bases` string[], nullable
  - `model` string, nullable
  - `menu_label` string, nullable
  - `menu_prompt` string, nullable
  - `menu_anchors` string, nullable

## Response `200`

Successful Response

- AppApiSkillsSkillOut
  - `name` string, required
  - `description` string, required
  - `instructions` string, required
  - `tools` string[], required
  - `knowledge_bases` string[]
  - `model` string, nullable
  - `menu_label` string, nullable
  - `menu_prompt` string, nullable
  - `menu_anchors` string, nullable
  - `anchors_generated` string, nullable
  - `anchor_vec_at` string, nullable
  - `warnings` object[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agent4/apis/chatagent-platform.md) · [All operations](https://skmtc.dev/agent4/apis/chatagent-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/agent4/apis/chatagent-platform/revisions/18e58f082ce3?raw)
