Create Skill Version
client.skills.versions.create(stringskillID, VersionCreateParamsbody, RequestOptionsoptions?): SkillVersionPOST/v1/skills/{skill_id}/versions
Create Skill Version
Parameters
Returns
Create Skill Version
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});
const skillVersion = await client.skills.versions.create("skill_id", {
files: [fs.createReadStream("path/to/file")]
});
console.log(skillVersion.id);{
"id": "id",
"created_at": "2024-10-30T23:58:27.427722Z",
"description": "description",
"name": "name",
"skill_id": "skill_01JAbcdefghijklmnopqrstuvw",
"type": "skill_version"
}Returns Examples
{
"id": "id",
"created_at": "2024-10-30T23:58:27.427722Z",
"description": "description",
"name": "name",
"skill_id": "skill_01JAbcdefghijklmnopqrstuvw",
"type": "skill_version"
}