Download Skill Package
Updated at:
Returns an OSS pre-signed URL (file_url) valid for 2 hours. You can directly GET this URL to download the zip package content.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
GET /skills/{skill_id}/versions/{version}/content
Request example
curl "$AGENTSTUDIO_URL/skills/skill_xxx/versions/1.0/content" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
content = client.skills.versions.download("skill_xxx", "1.0")
print(content["file_url"])
JsonObject content = client.skills().downloadVersion("skill_xxx", "1.0");
System.out.println(content.get("file_url").getAsString());
Response example
{
"skill_id": "skill_xxx",
"version": "1.0",
"file_url": "https://<oss-bucket>.oss-cn-xxx.aliyuncs.com/...?Expires=...&Signature=YOUR_SIGNATURE",
"request_id": "xxx"
}
Response fields
| Field | Type | Description |
|---|---|---|
skill_id | string | Skill ID |
version | string | Version number |
file_url | string | OSS pre-signed download URL, valid for 2 hours |
request_id | string | Unique request identifier |
Is this page helpful?