Create a version
Uploads a new version ZIP package for a custom Skill. The server increments the version number.
Endpoint
/api/v1/skills/{skill_id}/versionsUploads a new version for a custom Skill as multipart/form-data. The server increments the version number from latest_version. For example, 1.0 becomes 1.1. The version number cannot be specified.
Path parameters
skill_idstringRequiredID of a custom Skill under the primary account and workspace
Request body
filefileRequiredNew version ZIP package. Requirements are the same as Create a Skill
display_namestringOptionalUpdates the Skill display name. If omitted or blank, the name in the new package's SKILL.md is used
display_descriptionstringOptionalUpdates the Skill display description. If omitted or blank, the description in the new package's SKILL.md is used
Rules
- Only custom Skills can have new versions.
- A new version cannot be created while the Skill is being security scanned (
checking). Wait for the scan to finish. Therejectedstatus can be re-uploaded. - The
namein the new package's SKILL.md cannot duplicate an official Skill or another custom Skill in the current workspace. - After creation, the Skill's
latest_versionpoints to the new version. Old versions are retained. - The
display_nameanddisplay_descriptionrequest fields update the Skill display information.
Response fields
Returns a SkillVersionDTO for the new version.
idstringUnique version ID
typestringAlways skill_version
skill_idstringID of the parent Skill
display_namestringDisplay name of the version
display_descriptionstringDisplay description of the version
versionstringVersion number
statusstringVersion status
created_atstringCreation time
updated_atstringUpdate time
additional_propertiesobject / nullAdditional properties
Example
curl -X POST "https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/skills/skill_abc123/versions" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-F "file=@./pdf-skill-v2.zip"
Response example
{
"success": true,
"error_code": null,
"error_msg": null,
"data": {
"id": "skillver_xxxxxxxxxxxxxxxxxxxxxx",
"type": "skill_version",
"skill_id": "skill_abc123",
"display_name": "My Custom Skill",
"display_description": "Description parsed from SKILL.md",
"version": "1.1",
"status": "checking",
"created_at": "2026-06-15T08:23:11Z",
"updated_at": "2026-06-15T08:23:11Z",
"additional_properties": null
},
"request_id": "15a89d4c-f142-4e00-a9f7-b088442417c9"
}
Error codes
| HTTP status | error_code | Description |
|---|---|---|
| 401 | WORKSPACE_ID_ILLEGAL | Identity information is missing or invalid |
| 400 | SKILL_ID_IS_NULL | skill_id is blank |
| 400 | SKILL_FILE_IS_NULL | file is not uploaded or the file is empty |
| 400 | SKILL_FILE_FORMATER_ERROR | The file extension is not .zip, or the file header is not in ZIP format |
| 400 | SKILL_PACKAGE_TOO_LARGE | The ZIP package exceeds 50MB |
| 400 | INVALID_PARAMETER | The multipart request is malformed |
| 500 | SKILL_NOT_EXIST | The Skill does not exist, is deleted, or is inaccessible |
| 500 | SKILL_VERSION_NOT_EXIST | The version record could not be read after it was saved |
| 500 | SKILL_UPDATE_SECURITY_ERROR | The Skill is being security scanned |
| 500 | SKILL_NAME_OFFICIAL_DUPLICATE | The new package's name duplicates an official Skill |
| 500 | SKILL_NAME_CUSTOMER_DUPLICATE | The new package's name duplicates another custom Skill in the current workspace |
| 500 | SKILL_UPDATE_LOCK_ERROR | A concurrent version creation conflicts on the same Skill |
For the full list, see Skill API error codes.