Skip to main content
POST
Upload or update a user data file

Autorizaciones

X-API-Key
string
header
requerido

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.

Parámetros de ruta

file
string
requerido

The target file path (URL encoded if necessary).

Parámetros de consulta

overwrite
enum<string>
predeterminado:true

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

Opciones disponibles:
true,
false
full_info
enum<string>
predeterminado:false

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

Opciones disponibles:
true,
false

Cuerpo

application/octet-stream

The body is of type file.

Respuesta

File uploaded successfully.

path
string
size
integer
modified
string<date-time>