mosoodocs

删除 file

删除 pre-Thread 上传的文件,或删除 API token 调用方可见的公开 Thread 中的文件。

DELETE/files/{fileId}

删除 pre-Thread 上传的文件,或删除 API token 调用方可见的公开 Thread 中的文件。

Authorization

publicApiBearer
AuthorizationBearer <token>

使用 Authorization: Bearer msp_...。Project API key 只能配置、执行和访问本 Project 的 Agent、Session 和文件。密钥和账号管理需要 console 或 CLI 登录。旧账号 token 已被拒绝。

In: header

Path Parameters

fileId*string

添加或列出 Thread 文件时返回的文件 ID。v1 ID 是不带前缀的 ULID。

Match^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$
Formatulid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/files/01J0000000000000000000000J"
{  "ok": true}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}