Update Organization Skill
Update Organization Skill
You can use a specified skill_id to update the Skill of a specified organization; publishing is completed automatically once the update finishes.
Request Method
POST
Request URL
https://api.${endpoint}/v1/org/skill/update
Request Authentication
Uses the organization account's DevKey and DevSecret for HTTP Basic authentication. The calling account must have Skill management permission for the target organization.
Request Example
curl -X POST 'https://api.${endpoint}/v1/org/skill/update' \
-H 'Authorization: Basic ${BASIC_TOKEN}' \
-F 'org_id=org-xxxx' \
-F 'skill_id=skill-xxxx' \
-F 'file=@/path/to/refund-policy-v2.skill' \
-F 'category_id=category-xxxx'
curl -X POST 'https://api.${endpoint}/v1/org/skill/update' \
-H 'Authorization: Basic ${BASIC_TOKEN}' \
-F 'org_id=org-xxxx' \
-F 'skill_id=skill-xxxx' \
-F 'file=@/path/to/refund-policy-v2.skill' \
-F 'category_id=category-xxxx'
This code block in the floating window
Form Data Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
skill_id |
String | Yes | The organization shared Skill ID to update. |
org_id |
String | Yes | The organization ID that the Skill belongs to; must match the target Skill. |
file |
File | Yes | .skill or .zip skill package. |
category_id |
String | No | The category ID after the update; keeps the original category when not provided. |
Success Response
{
"code": 0,
"message": "OK",
"data": {
"skill_id": "skill-xxxx",
"name": "refund_policy",
"owner_type": "ORGANIZATION"
}
}
{
"code": 0,
"message": "OK",
"data": {
"skill_id": "skill-xxxx",
"name": "refund_policy",
"owner_type": "ORGANIZATION"
}
}
This code block in the floating window
| Field | Description |
|---|---|
skill_id |
The updated organization shared Skill ID. |
name |
The name in the SKILL.md frontmatter of this skill package. |
owner_type |
Fixed as ORGANIZATION. |
Usage Boundaries
- Only updates shared Skills with
owner_type=ORGANIZATIONthat are not bound to an Agent. - Agent private Skills, historical private records with a
bot_id, and SYSTEM Skills are all rejected. - Only
.skilland.zipare accepted; the archive is at most 20 MiB and must containSKILL.md, whose frontmatter must containname. POST /v1/org/skill/importis only used to create an organization Skill and does not carry update semantics.
