Skip to main content
POST
上传或更新用户数据文件

授权

X-API-Key
string
header
必填

API密钥认证。从您的用户设置中生成API密钥 位于https://platform.comfy.org/profile/api-keys。在X-API-Key头中传递密钥。

路径参数

file
string
必填

目标文件路径(必要时进行URL编码)。

查询参数

overwrite
enum<string>
默认值:true

如果为“否”,则阻止覆盖现有文件。默认为“是”。

可用选项:
true,
false
full_info
enum<string>
默认值:false

如果为“是”,则返回详细的文件信息;如果为“否”,则仅返回相对路径。

可用选项:
true,
false

请求体

application/octet-stream

The body is of type file.

响应

文件上传成功。

path
string
size
integer
modified
string<date-time>