Upload New Skill Version

Updated at:

Uploads a new version zip package for an existing skill. The version number is generated by the server; the new version also undergoes a security scan; agents mounted with older versions are not affected.

Prerequisites

Endpoint and authentication configured. For details, see Overview and authentication. Before uploading a new version, upload the zip package via File to obtain a file_id.

Endpoint

POST/skills/{skill_id}/versions

The request body contains only file_id. The version number is generated by the server; the new version also undergoes a security scan; agents mounted with older versions are not affected.

Path parameters

skill_idstringRequired

Skill ID, format skill_xxx

Response fields

idstring

Version ID, format: skillver_xxx

skill_idstring

Parent skill ID

typestring

Always skill_version

namestring

Parsed from SKILL.md in the zip package

descriptionstring

Parsed from SKILL.md in the zip package

versionstring

Version number, generated by the server

statusstring

Scan status: checking / active / rejected. Only active can be mounted

created_atstring

Creation time (ISO 8601)

updated_atstring

Last update time (ISO 8601)

additional_propertiesobject

Returned only when status=rejected; contains error_info: security review issues listed by file path within the zip

Request example

curl -X POST "$AGENTSTUDIO_URL/skills/skill_xxx/versions" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_id": "file_xxx"}'
sv = client.skills.versions.create("skill_xxx", file_id="file_xxx")
print(sv.version)
SkillVersion sv = client.skills().createVersion("skill_xxx",
    SkillCreateParam.builder().fileId("file_xxx").build());
System.out.println(sv.getVersion());

Response example

{
  "id": "skillver_xxx",
  "skill_id": "skill_xxx",
  "type": "skill_version",
  "name": "pdf3.0",
  "description": "Description parsed from SKILL.md",
  "version": "1.1",
  "status": "checking",
  "created_at": "2026-06-15T08:23:11.456+00:00",
  "updated_at": "2026-06-15T08:23:11.456+00:00"
}