---
title: "Publish a userdata file to the cloud"
method: POST
path: "/api/userdata/{file}/publish"
tags: ["userdata"]
---

# Publish a userdata file to the cloud

`POST /api/userdata/{file}/publish`

[cloud-only] Makes a userdata file available via a public URL for sharing or embedding.

## Path parameters

- `file` string, required

## Response `200`

Published file URL

- object
  - `url` string, uri — Public URL of the published file

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

## Changes

- **2026-05-22** `09a5075587c8` — 3 info
  - api operation id `publishUserdataFile` removed and replaced with `postUserdataFilePublish`
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added
- **2026-04-24** `a66055fa384e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/userdata/:file/publish/post.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/c4db9e1283df/schema)
