Create Skill Version
beta.skills.versions.create(strskill_id, VersionCreateParams**kwargs) -> VersionCreateResponse
/v1/skills/{skill_id}/versions?beta=true
Create Skill Version
Parameters
skill_id: str
Unique identifier for the skill.
The format and length of IDs may change over time.
files: Optional[SequenceNotStr[FileTypes]]
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
Create Skill Version
Python
from anthropic import Anthropic
client = Anthropic(
api_key="my-anthropic-api-key",
)
version = client.beta.skills.versions.create(
skill_id="skill_id",
)
print(version.id){
"id": "skillver_01JAbcdefghijklmnopqrstuvw",
"created_at": "2024-10-30T23:58:27.427722Z",
"description": "A custom skill for doing something useful",
"directory": "my-skill",
"name": "my-skill",
"skill_id": "skill_01JAbcdefghijklmnopqrstuvw",
"type": "type",
"version": "1759178010641129"
}Returns Examples
{
"id": "skillver_01JAbcdefghijklmnopqrstuvw",
"created_at": "2024-10-30T23:58:27.427722Z",
"description": "A custom skill for doing something useful",
"directory": "my-skill",
"name": "my-skill",
"skill_id": "skill_01JAbcdefghijklmnopqrstuvw",
"type": "type",
"version": "1759178010641129"
}