Перейти к основному содержанию
POST
Upload or update a user data file

Авторизации

X-API-Key
string
header
обязательно

API key authentication. Generate an API key from your account settings at https://platform.comfy.org/profile/api-keys. Pass the key in the X-API-Key header.

Параметры пути

file
string
обязательно

The target file path (URL encoded if necessary).

Параметры запроса

overwrite
enum<string>
по умолчанию:true

If "false", prevents overwriting existing files. Defaults to "true".

Доступные опции:
true,
false
full_info
enum<string>
по умолчанию:false

If "true", returns detailed file info; if "false", returns only the relative path.

Доступные опции:
true,
false

Тело

application/octet-stream

The body is of type file.

Ответ

File uploaded successfully.

path
string
size
integer
modified
string<date-time>