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"
}Upload a file to a user’s data directory. Optional query parameters allow control over overwrite behavior and response detail.
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"
}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.
The target file path (URL encoded if necessary).
If "false", prevents overwriting existing files. Defaults to "true".
true, false If "true", returns detailed file info; if "false", returns only the relative path.
true, false The body is of type file.
Was this page helpful?