メインコンテンツへスキップ
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>