POST

Authorizations

x-api-key
string
header
required

Headers

bma-workspace-id
string

Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.

Path Parameters

skill_id
string
required

ID of the skill to add the version to: skl_ followed by 26 lowercase base32 characters.

Body

multipart/form-data
files
file[]
required

The version's files, one multipart part each (field name files or files[]); each part's filename is the file's relative path. Either all files sit in one top-level directory that holds SKILL.md (any letter case), or SKILL.md is at the root and the files are stored under a directory named after the skill.

Response

Success.

An immutable version of a skill, made by one upload.

id
string
required

ID of the version (skr_ followed by 26 lowercase base32 characters); use it as version in the version paths and to pin the version in a skill reference.

type
string
required

Always skill_version.

Allowed value: "skill_version"
skill_id
string
required

ID (skl_...) of the skill the version belongs to.

name
string
required

The SKILL.md frontmatter name of the version; always the skill's name (bma_name).

description
string
required

The SKILL.md frontmatter description of the version (at most 1,024 bytes).

created_at
string<date-time>
required

When the version was uploaded (RFC 3339, UTC, up to microsecond precision).

bma_revision
integer
required

The version's number within its skill. 1 for the first version and one more for each later upload; the number of a deleted version is never reused.