Create Skill Version
api/skills/versions/create
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/skills/versions/create Changed · +19 / -14 lines
# Create Skill Version ## Path parameters ## Body parameters (form-data) ## Returns ## Example ### Response (200) ## Create Skill Version ### Path Parameters ### Returns ### Example #### Response
---- -title: Create Skill Version -url: https://platform.claude.com/docs/en/api/skills/versions/create ---- +# Create Skill Version -## Create Skill Version +**POST** `/v1/skills/{skill_id}/versions` -**post** `/v1/skills/{skill_id}/versions` - Create Skill Version -### Path Parameters +## Path parameters - `skill_id: string`
The format and length of IDs may change over time. -### Returns +## Body parameters (form-data) -- `SkillVersion object { id, created_at, description, 3 more }` +- `files: array of string` + 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 + +- `SkillVersion object` + - `id: string` Unique identifier for this Skill Version. The id addresses the version in
ISO 8601 timestamp of when the skill was created. + format: date-time + - `description: string` Description of the skill version.
For Skill Versions, this is always `"skill_version"`. - - `"skill_version"` + default: skill_version -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/skills/$SKILL_ID/versions \ -H 'Content-Type: multipart/form-data' \ -H 'anthropic-version: 2023-06-01' \
-F files='["Example data"]' ``` -#### Response +### Response (200) ```json {