Updates the PolarClaw Skill configuration.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
The application ID. |
pa-xxx |
| SkillKey |
string |
Yes |
The Skill identifier key. |
alibacloud-rds-copilot |
| Enabled |
boolean |
No |
Specifies whether to enable the Skill. |
true |
| ApiKey |
string |
No |
The Skill API key. An empty string indicates that the key is deleted. |
my-api |
| Env |
object |
No |
The environment variables as a key-value map. A null value indicates that the variable is deleted. |
{"NETA_TOKEN":"my-token"} |
|
string |
No |
The environment variables as a key-value map. A null value indicates that the variable is deleted. |
{"NETA_TOKEN":"my-token"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
F45FFACC-xxx |
| Message |
string |
The response message. |
success |
| Code |
integer |
The response status code. |
200 |
| ApplicationId |
string |
The application ID. |
pa-xxx |
| Ok |
boolean |
Indicates whether the operation is successful. |
true |
| SkillKey |
string |
The Skill identifier key. |
alibacloud-rds-copilot |
| Config |
object |
The updated Skill configuration. Sensitive values are masked. |
|
| Enabled |
boolean |
Specifies whether to enable the Skill. |
true |
| Env |
object |
The environment variable configuration. |
|
|
string |
The environment variable configuration. |
{"TOKEN":"my-token"} |
Examples
Success response
JSON format
{
"RequestId": "F45FFACC-xxx",
"Message": "success",
"Code": 200,
"ApplicationId": "pa-xxx",
"Ok": true,
"SkillKey": "alibacloud-rds-copilot",
"Config": {
"Enabled": true,
"Env": {
"key": "{\"TOKEN\":\"my-token\"}"
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.