Creates a custom skill.
Try it now
Test
RAM authorization
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| IconKey |
string |
No |
The icon of the custom skill. Valid values:
|
icon01 |
| SkillName |
string |
No |
The skill name. |
weather-enhanced |
| SkillDescription |
string |
No |
The skill description. |
Current weather and forecasts with wttr.in via curl for locations, rain, temperature, travel planning. |
| PackageOssKey |
string |
No |
The OSS path of the skill package. This parameter is reserved by the system and does not need to be specified. |
test/sk-test/current/skill.zip |
| SkillPackageUrl |
string |
No |
The OSS download URL of the skill package. This parameter is required for API calls. |
https://test.oss-cn-hangzhou.aliyuncs.com/weather_skill.zip?Expires=1788168088&OSSAccessKeyId=**** |
| FileList |
array |
No |
The list of files in the skill package. |
|
|
string |
No |
The file in the skill package. |
SKILL.md |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PlainResult |
||
| RequestId |
string |
The request ID. |
425F351C-3F8E-5218-A520-B6311D0D**** |
| Code |
string |
The status code. A value of 200 indicates success. |
200 |
| Message |
string |
The response message. |
Success. |
| SkillInfo |
array<object> |
The skill information. |
|
|
object |
The skill information. |
||
| SkillId |
string |
The unique ID of the skill. |
sk-051j4pbwxzgol**** |
| SkillName |
string |
The skill name. |
dev-spec |
| Type |
string |
The skill type. |
CUSTOM |
| Status |
string |
The skill status. |
ACTIVE |
| Description |
string |
The skill description. |
Current weather and forecasts with wttr.in via curl for locations, rain, temperature, travel planning. |
| Instruction |
string |
The skill summary. |
Current weather and forecasts. |
Examples
Success response
JSON format
{
"RequestId": "425F351C-3F8E-5218-A520-B6311D0D****",
"Code": "200",
"Message": "Success.",
"SkillInfo": [
{
"SkillId": "sk-051j4pbwxzgol****",
"SkillName": "dev-spec",
"Type": "CUSTOM",
"Status": "ACTIVE",
"Description": "Current weather and forecasts with wttr.in via curl for locations, rain, temperature, travel planning.",
"Instruction": "Current weather and forecasts."
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.