Updated on 2026-09-11 GMT+08:00

Updating a Skill Package

Function

This API is used to update the information about a skill package of an enterprise-developed skill.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    workspace:skillPackage:update

    Write

    -

    -

    -

    -

URI

PUT /v3/ai-agents/skills/{skill_id}/packages/{package_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

skill_id

Yes

String

Skill ID.

package_id

Yes

String

Skill package ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Language

No

String

Language, which is used for internationalization.

  • en-us: English.

  • zh-cn: Chinese.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

package_status

No

String

Skill package status.

remark

No

String

Remarks.

Response Parameters

Status code: 200

Table 4 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 5 Response body parameters

Parameter

Type

Description

id

String

Skill package ID.

skill_id

String

Skill ID.

version

String

Version.

revision

Integer

Version revision number.

package_hash

String

SHA-256 hash value of the skill package.

package_size

Long

Size of the skill package, in bytes.

package_status

String

Skill package status.

uploaded_by

String

Uploader.

uploaded_role

String

Role of the uploader.

regions

Array of SkillPackageRegionItem objects

Region details list.

remark

String

Remarks.

create_time

String

Creation time (UTC time in ISO 8601 format).

update_time

String

Update time (UTC time in ISO 8601 format).

Table 6 SkillPackageRegionItem

Parameter

Type

Description

region

String

Region ID.

obs_bucket

String

OBS bucket name.

obs_object_key

String

OBS object key.

upload_status

String

Upload status.

Status code: 400

Table 7 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 401

Table 9 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 10 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 403

Table 11 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 12 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 404

Table 13 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 14 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Status code: 500

Table 15 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 16 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which is returned upon failure.

error_msg

String

Error message.

Example Requests

/v3/ai-agents/skills/skill-uuid-002/packages/pkg-uuid-010

{
  "package_status" : "DISABLED",
  "remark" : "Pause this version"
}

Example Responses

Status code: 200

{
  "id" : "pkg-uuid-010",
  "skill_id" : "skill-uuid-002",
  "version" : "1.0.0",
  "revision" : 1,
  "package_hash" : "sha256-abc123...",
  "package_size" : 52428800,
  "package_status" : "DISABLED",
  "uploaded_by" : "tenant-user",
  "uploaded_role" : "TENANT_ADMIN",
  "regions" : [ {
    "region" : "cn-north-7",
    "obs_bucket" : "wks-skills-cn-north-7",
    "obs_object_key" : "skills/internal-doc-helper/1.0.0/internal-doc-helper-1.0.0.zip",
    "upload_status" : "UPLOADED"
  } ],
  "remark" : "Pause this version",
  "create_time" : "2026-05-13T08:00:00Z",
  "update_time" : "2026-05-13T09:00:00Z"
}

Status Codes

Status Code

Description

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

Error Codes

See Error Codes.