Files

Manage files used by agents or users. These endpoints support file uploads, previews, and importing files directly from URLs.

Upload File

post
查询参数
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
请求体
filestring · binary必填

Upload file

响应
post
/admin/api/v2/files/upload

Preview File

get
路径参数
file_idstring必填

File id

查询参数
expiresstring必填

Expires

noncestring必填

Nonce

sigstring必填

Sig

响应
chevron-right
200

Successful Response

application/json
响应object
get
/admin/api/v2/files/{file_id}

Remote Url Upload File

post
查询参数
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
请求体

The remote url

urlstring必填
响应
post
/admin/api/v2/files/remote-url/upload

最后更新于

这有帮助吗?