메인 콘텐츠로 건너뛰기
POST
/
api
/
userdata
/
{file}
Upload or update a user data file
curl --request POST \
  --url https://cloud.comfy.org/api/userdata/{file} \
  --header 'Content-Type: application/octet-stream' \
  --header 'X-API-Key: <api-key>' \
  --data '"<string>"'
{
  "path": "<string>",
  "size": 123,
  "modified": "2023-11-07T05:31:56Z"
}

인증

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>