CreateSkill
Creates a Skill.
Operation description
Prerequisites
Before you begin, ensure that the service provider has enabled the modification feature and configured its parameters during service creation.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SkillName |
string |
No |
The name of the Skill. |
11111 |
| SkillLabels |
array |
No |
The Skill labels. |
["category:frontend-development"] |
|
string |
No |
A Skill label. |
category:frontend-development |
|
| SkillDescription |
string |
No |
The description of the Skill. |
11111 |
| SkillSpaceId |
string |
Yes |
The ID of the SkillSpace containing the Skill. |
ss-111111 |
| SourceType |
string |
Yes |
The creation method for the Skill. |
COPY |
| SourceSkillId |
string |
No |
Required when SourceType is set to COPY. The ID of the public Skill. |
s-11111 |
| OssUrl |
string |
No |
Required when SourceType is set to UPLOAD. The OSS URL of the Skill package to upload. |
https://embedding-pic.oss-cn-beijing-internal.aliyuncs.com/30516570 |
| ClientToken |
string |
No |
A client-generated token that ensures request idempotence. It must be unique for each request. The ClientToken can contain only ASCII characters and must be no more than 64 characters long. |
123e4567-e89b-12d3-a456-426655440000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The ID of the request. |
A17F9930-E2DC-5E87-B6D6-B0BCD2B00834 |
| SkillId |
string |
The ID of the Skill. |
s-051j4ot2aerr5dyc4 |
Examples
Success response
JSON format
{
"RequestId": "A17F9930-E2DC-5E87-B6D6-B0BCD2B00834",
"SkillId": "s-051j4ot2aerr5dyc4"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.