---
title: "Update skill by uploading a new revision"
method: POST
path: "/orgs/{orgID}/skills/{skillID}"
tags: ["Skills"]
---

# Update skill by uploading a new revision

`POST /orgs/{orgID}/skills/{skillID}`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/skills/{skillID}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session` and API key in header `X-Omnara-Csrf`

Creates the skill's next revision from either a replacement archive or replacement SKILL.md content (which keeps every other file from the current revision). The SKILL.md frontmatter `name` must match the skill's existing name.

## Path parameters

- `orgID` string, required
- `skillID` string, required

## Request body `multipart/form-data`

- union
  - object
    - `archive` string, binary, required
    - `skill_md` string: Replacement SKILL.md content. Every other file in the current revision's archive is preserved unchanged.
  - object
    - `archive` string, binary
    - `skill_md` string, required: Replacement SKILL.md content. Every other file in the current revision's archive is preserved unchanged.

## Response `200`

Skill updated with a new revision.

- Skill
  - `id` string, required
  - `org_id` string, required
  - `owner` union, required
    - OrgSkillOwner
      - `kind` 'org', required
    - ProjectSkillOwner
      - `kind` 'project', required
      - `project_id` string, required: Project ID (proj_...).
    - UserSkillOwner
      - `kind` 'user', required
      - `user_id` string, required
  - `name` string, required: Machine-readable skill identifier consisting of lowercase ASCII segments separated by single hyphens.
  - `revision_id` string, required
  - `revision` integer, required: Latest revision number of the skill.
  - `description` string, required
  - `skill_md` string
  - `files` SkillFile[]: Files in the skill archive, including SKILL.md, with paths relative to the skill's top-level directory. Returned when fetching a single skill; omitted from list responses.
    - `path` string, required
    - `size` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `409`: The request conflicts with current resource state or idempotency history.
- `413`: The uploaded skill archive is too large.
- `500`: An unexpected internal server error occurred.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-09-28** `acddeb8fc6a5`: 9 warning, 9 info
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `400`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `401`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `403`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `404`
  - …14 more
- **2026-09-01** `e4978b047d7a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/skills/:skillID/post.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
