---
title: "Upsert a bundled skill file"
method: PUT
path: "/api/skills/{id}/files/{path}"
tags: ["Skills"]
---

# Upsert a bundled skill file

`PUT /api/skills/{id}/files/{path}`

## Path parameters

- `id` string, required
- `path` string, required

## Request body

- object
  - `content` string, required
  - `mimeType` string
  - `isBinary` boolean
  - `size` integer

## Response `200`

Skill file upserted

- object
  - `file` SkillFile, required
    - `id` string, required
    - `skillId` string, required
    - `path` string, required
    - `content` string, required
    - `mimeType` string, required
    - `isBinary` boolean, required
    - `size` number, nullable, required
    - `createdAt` string, required
    - `lastUpdatedAt` string, required
  - `skill` Skill, required
    - `id` string, required
    - `name` string, required
    - `description` string, required
    - `content` string, required
    - `type` 'remote' | 'personal', required
    - `scope` 'global' | 'swarm' | 'agent', required
    - `ownerAgentId` string, nullable, required
    - `sourceUrl` string, nullable, required
    - `sourceRepo` string, nullable, required
    - `sourcePath` string, nullable, required
    - `sourceBranch` string, required
    - `sourceHash` string, nullable, required
    - `isComplex` boolean, required
    - `allowedTools` string, nullable, required
    - `model` string, nullable, required
    - `effort` string, nullable, required
    - `context` string, nullable, required
    - `agent` string, nullable, required
    - `disableModelInvocation` boolean, required
    - `userInvocable` boolean, required
    - `version` number, required
    - `isEnabled` boolean, required
    - `systemDefault` boolean, required
    - `createdAt` string, required
    - `lastUpdatedAt` string, required
    - `lastFetchedAt` string, nullable, required

## Other responses

- `400` — Validation error
- `404` — Skill not found

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/ef761849166b/schema)
