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

「false」の場合、既存ファイルの上書きを防ぎます。デフォルトは「true」。

利用可能なオプション:
true,
false
full_info
enum<string>
デフォルト:false

「true」の場合は詳細なファイル情報を返し、「false」の場合は相対パスのみを返します。

利用可能なオプション:
true,
false

ボディ

application/octet-stream

The body is of type file.

レスポンス

ファイルのアップロードに成功しました。

path
string
size
integer
modified
string<date-time>