Skip to content
中文

Create Skill Version

POST/anthropic/v1/skills/{skill_id}/versions◐ Partial

Request parameters

  • skill_idstringrequired

    path: Skill ID (path or query parameter).

  • filesarrayrequired

    Files to upload for the skill.

    All files must be in the same top-level directory and must include a SKILL.md file at the root of that directory.

Returns

501

Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.

Errors follow the Claude Managed Agents format — see error codes

Request

curl
curl -X POST https://api.deepraxis.com/anthropic/v1/skills/skill_123/versions \
  -H "x-api-key: $PRAXIS_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: managed-agents-2026-04-01"
Python
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.deepraxis.com/anthropic",
    api_key="$PRAXIS_API_KEY",
)

# 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
result = client.beta.skills.versions.create("skill_123", {})
print(result)
TypeScript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://api.deepraxis.com/anthropic",
  apiKey: "$PRAXIS_API_KEY",
});

// 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
const result = await client.beta.skills.versions.create("skill_123", {});
console.log(result);

Response 501

{
  "type": "error",
  "error": {
    "type": "not_implemented_error",
    "message": "Not implemented: this Managed Agents operation is not implemented on this platform yet (POST /v1/skills/{skill_id}/versions); see the docs for the supported subset."
  },
  "request_id": "48f83844-5260-4628-b491-5aa8f623501c"
}

Response

HTTP 200

Successful response

multipart/form-data

Name Type Description
id string Unique identifier for this Skill Version. The id addresses the version in paths and pins it in references.
created_at string ISO 8601 timestamp of when the skill was created.
description string Description of the skill version. This is extracted from the SKILL.md file in the skill upload.
name string The Skill's immutable kebab-case slug, set at creation from the first upload's SKILL.md frontmatter name (or its enclosing directory). Every later upload must resolve to the same value. Also the top-level directory of the Skill's mounted files and the base name of a downloaded archive.
skill_id string Unique identifier for the skill. The format and length of IDs may change over time.
type string Object type. For Skill Versions, this is always "skill_version".