文档首页/ 智能体开发平台 AgentArts/ API参考/ API/ 沙箱工具/ 代码解析器管理/ 删除代码解释器 - DeleteCoreCodeInterpreter
更新时间:2026-04-15 GMT+08:00
分享

删除代码解释器 - DeleteCoreCodeInterpreter

功能介绍

删除指定的代码解析器。

URI

DELETE /v1/core/code-interpreters/{code_interpreter_id}

表1 路径参数

参数

是否必选

参数类型

描述

code_interpreter_id

String

参数解释:

代码解释器ID。

约束限制:

不涉及。

取值范围:

符合UUID正则^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$的36位字符串。

默认取值:

不涉及。

请求参数

响应参数

状态码:204

删除成功,无响应内容。

状态码:401

表2 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

错误码。

取值范围:

满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。

error_msg

String

参数解释:

错误信息。

取值范围:

不涉及。

状态码:403

表3 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

错误码。

取值范围:

满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。

error_msg

String

参数解释:

错误信息。

取值范围:

不涉及。

encoded_authorization_message

String

参数解释:

编码后的授权失败信息,可找IAM服务oncall提供解码方式获取详细授权失败原因。

取值范围:

不涉及。

details

Array of CoreToolsCommonError objects

参数解释:

依赖的下游服务错误信息列表。

取值范围:

不涉及。

表4 CoreToolsCommonError

参数

参数类型

描述

error_code

String

参数解释:

错误码。

取值范围:

满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。

error_msg

String

参数解释:

错误信息。

取值范围:

不涉及。

状态码:404

表5 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

错误码。

取值范围:

满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。

error_msg

String

参数解释:

错误信息。

取值范围:

不涉及。

状态码:429

表6 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

错误码。

取值范围:

满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。

error_msg

String

参数解释:

错误信息。

取值范围:

不涉及。

状态码:500

表7 响应Body参数

参数

参数类型

描述

error_code

String

参数解释:

错误码。

取值范围:

满足正则^AgentArts.0400\d{4}$,例如AgentArts.04000404。

error_msg

String

参数解释:

错误信息。

取值范围:

不涉及。

请求示例

/v1/core/code-interpreters/9ca9f2a6-18e4-xxxx-xxxx-8c21e978a1ad

响应示例

状态码:401

认证失败。

"\"{\\n  \\\"error_code\\\": \\\"AgentArts.04000401\\\",\\n  \\\"error_msg\\\": \\\"Authentication failed: invalid token\\\"\\n}\""

状态码:403

权限不足。

"\"{\\n  \\\"error_code\\\": \\\"AgentArts.04000403\\\",\\n  \\\"error_msg\\\": \\\"Authentication failed: you have no permission of VCPEP.\\\",\\n  \\\"encoded_authorization_message\\\": \\\"eyJlcnJvciI6ICJVbmF1dGhvcml6ZWQifQ==\\\",\\n  \\\"details\\\": [\\n    {\\n      \\\"error_code\\\": \\\"EndPoint.0004\\\",\\n      \\\"error_msg\\\": \\\"Authentication information is incorrect or you have no permissions.\\\"\\n    }\\n  ]\\n}\""

状态码:404

资源不存在。

"\"{\\n  \\\"error_code\\\": \\\"AgentArts.04000404\\\",\\n  \\\"error_msg\\\": \\\"resource xxx not exist\\\"\\n}\""

状态码:429

请求频率超限。

"\"{\\n  \\\"error_code\\\": \\\"AgentArts.04000429\\\",\\n  \\\"error_msg\\\": \\\"The interface has been limited.\\\"\\n}\""

状态码:500

内部系统错误。

"\"{\\n  \\\"error_code\\\": \\\"AgentArts.04000500\\\",\\n  \\\"error_msg\\\": \\\"Internal error\\\"\\n}\""

状态码

状态码

描述

204

删除成功,无响应内容。

401

认证失败。

403

权限不足。

404

资源不存在。

429

请求频率超限。

500

内部系统错误。

错误码

请参见错误码

相关文档