Upload New Skill Version
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.
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 fieldsid Version ID, format: skill_id Parent skill ID type Always name / description Parsed from version Version number, generated by the server status Scan status: created_at / updated_at Creation / last update time, ISO 8601 additional_properties Returned only when | Response example |