---
title: "Save a Library skill version and its fingerprint [write]"
method: POST
path: "/library/skills/{id}/revisions"
---

# Save a Library skill version and its fingerprint \[write\]

`POST /library/skills/{id}/revisions`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/library/skills/{id}/revisions`
- Auth: HTTP bearer

Runs the existing consumer saveSkillRevision owner, including fingerprint update. expectedLatestRevision optionally refuses a concurrent version; platform validation and refusals are preserved.

## Path parameters

- `id` string, required

## Request body

- object
  - `files` object[], required
    - `path` string, required
    - `content` string, required
    - `encoding` 'utf8' | 'base64'
  - `displayName` string
  - `expectedLatestRevision` string: Optional revision CAS token for a new version.

## Response `201`

Platform revision receipt

## Other responses

- `default`: Error — { error: { code, message } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/library/skills/:id/revisions/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/8280a065ef6a?raw)
