---
title: "Update skill file content by body name and path"
method: PUT
path: "/api/v1/skills/file"
tags: ["Skills"]
---

# Update skill file content by body name and path

`PUT /api/v1/skills/file`

**Required scope:** `skill`

## Request body

- object
  - `skill_name` string, required
  - `path` string, required
  - `content` string, required

## Response `200`

Standard AstrBot success response

- SuccessEnvelope
  - `status` 'ok', required
  - `message` string
  - `data` unknown, required

---

[API](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1.md) · [All operations](https://skmtc.net/astrbotdevs/apis/astrbot-openapi-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astrbotdevs/astrbot-openapi-v1/versions/4463c5ffdb9c/schema)
