文件删除

使用本接口,删除云知声 Token Hub大模型服务平台上的相关文件。

POST/v1/files/delete

授权

Authorizationstringheader必填
HTTP: Bearer Auth
  • Security Scheme Type: http
  • HTTP Authorization Scheme: Bearer API_key,用于验证账户信息,可在 项目管理>API Key 中查看。

请求头

Content-Typestring默认值: application/json必填

请求体application/json

file_id integer (int64) 必填

文件的唯一标识符。

purpose string 必填

文件使用目的。需与上传时保持一致。

响应体结构

file_id integer (int64)

文件的唯一标识符。

base_respobject

base_resp.status_codeinteger

状态码如下:
  • 100001, 请求参数错误
  • 101999, 服务内部错误
更多内容可查看错误码了解详情

base_resp.status_msgstring

状态详情