# Save a skill file

> Write one text file into the bundle and republish. For small edits; use the bundle upload for whole-bundle pushes.

Source: https://docs.generalinput.com/api/skills/save-file



<Endpoint method="PUT" path="/v1/skills/:id/files" />

<Access scope="skills:manage" />

The bundle is validated after the write. An invalid result is rejected and nothing changes.

## Body [#body]

| Field     | Type   | Required | Notes                                                       |
| --------- | ------ | -------- | ----------------------------------------------------------- |
| `path`    | string | yes      | Bundle-relative path, `SKILL.md` or `references/fields.md`. |
| `content` | string | yes      | The whole file, as text.                                    |

## Response [#response]

`204 No Content`.

## Errors [#errors]

| Status | When                                                               |
| ------ | ------------------------------------------------------------------ |
| `400`  | The resulting bundle fails the spec. The message lists the errors. |
| `404`  | Not found, or the member cannot edit it.                           |
| `409`  | Modified concurrently.                                             |
