文档首页/ 智能体开发平台 AgentArts/ API参考/ API/ 沙箱工具/ 代码解释器管理/ 删除代码解释器 - DeleteCoreCodeInterpreter
更新时间:2026-05-08 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

认证失败。

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

状态码:403

权限不足。

{
  "error_code" : "AgentArts.04000403",
  "error_msg" : "Authentication failed: you have no permission of XXX",
  "encoded_authorization_message" : "eyJlcnJvciI6ICJVbmF1dGhvcml6ZWQifQ==",
  "details" : {
    "error_code" : "XXX",
    "error_msg" : "XXXX"
  }
}

状态码:404

资源不存在。

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

状态码:429

请求频率超限。

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

状态码:500

内部系统错误。

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

状态码

状态码

描述

204

删除成功,无响应内容。

401

认证失败。

403

权限不足。

404

资源不存在。

429

请求频率超限。

500

内部系统错误。

错误码

请参见错误码

相关文档