userdata

Write or create a userdata file

Writes (creates or replaces) a file in the authenticated user's data directory.

post/api/userdata/{file}

Path parameters

filestring required

File path relative to user data directory

Query parameters

overwriteboolean

Allow overwriting existing files

full_infoboolean

Return full file info in response

Headers

Comfy-Userstring

Identifies the active user in multi-user mode. Used for settings, userdata, and history isolation. This is not a security mechanism — it is an organisational convenience with no authentication behind it.

Request body

{"stackTrail":"paths:/api/userdata/{file}:post:requestBody:content:application/json:schema","oasType":"schema","type":"unknown"}

Response

File written

OR
string required

Relative path of the written or moved file. Returned when full_info is absent or false.

Changes