Skip to main content
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"
}

Authorizations

X-API-Key
string
header
required

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

Path Parameters

file
string
required

The target file path (URL encoded if necessary).

Query Parameters

overwrite
enum<string>
default:true

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

Available options:
true,
false
full_info
enum<string>
default:false

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

Available options:
true,
false

Body

application/octet-stream

The body is of type file.

Response

File uploaded successfully.

path
string
size
integer
modified
string<date-time>