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

Unbinding Skills

Function

This API is used to unbind skills in batches.

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:agentSkill:removeAuthorization

    Write

    -

    -

    -

    -

URI

POST /v3/ai-agents/skill-bindings/delete

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Language

No

String

Language, which is used for internationalization.

  • en-us: English.

  • zh-cn: Chinese.

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

instance_ids

Yes

Array of strings

Instance IDs.

skill_ids

Yes

Array of strings

Skill IDs.

tags

No

Array of strings

Tags. The format is key:value. You can query the tbl_desktop_tags table by tag to obtain the associated instance IDs, which are then deduplicated with instance_ids.

Response Parameters

Status code: 200

Table 3 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 4 Response body parameters

Parameter

Type

Description

total

Integer

Total number of items.

success_count

Integer

Number of successful items.

failed_count

Integer

Number of failed items.

failed_details

Array of BindingFailedDetail objects

Failed item list.

Table 5 BindingFailedDetail

Parameter

Type

Description

instance_id

String

Instance ID.

skill_id

String

Skill ID.

error_code

String

Error code, in the format of WKS.XXXXXXXX.

error_msg

String

Error information.

Status code: 207

Table 6 Response header parameters

Parameter

Type

Description

X-Request-Id

String

-

Table 7 Response body parameters

Parameter

Type

Description

total

Integer

Total number of items.

success_count

Integer

Number of successful items.

failed_count

Integer

Number of failed items.

failed_details

Array of BindingFailedDetail objects

Failed item list.

Table 8 BindingFailedDetail

Parameter

Type

Description

instance_id

String

Instance ID.

skill_id

String

Skill ID.

error_code

String

Error code, in the format of WKS.XXXXXXXX.

error_msg

String

Error information.

Status code: 400

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: 401

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: 403

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/skill-bindings/delete

{
  "instance_ids" : [ "instance-001", "instance-002" ],
  "skill_ids" : [ "skill-uuid-001", "skill-uuid-002" ],
  "tags" : [ "env:production", "dept:finance" ]
}

Example Responses

Status code: 200

{
  "total" : 4,
  "success_count" : 4,
  "failed_count" : 0,
  "failed_details" : [ ]
}

Status Codes

Status Code

Description

200

OK

207

Multi-Status

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

Error Codes

See Error Codes.