Rename Asset In GenAsset
Rename Asset In GenAsset — fix a name without a migration
- asset_id
- asset_name
- status_json
Every asset library eventually collects a name you regret. Maybe you saved something as "untitled_test_final2" in a hurry, or a project got renamed and the asset didn't. Rename Asset In GenAsset is the two-input node that fixes it: give it an asset_id and a new_name, and the asset's name changes on the server. That's the whole job, and that's exactly what it should be.
The useful thing to understand is what renaming doesn't touch. The asset's id stays the same, all its versions stay, every workflow or load node that references the asset keeps working. Renaming is metadata surgery with zero collateral - no re-uploads, no new versions, no broken references. If you've ever renamed a file and then watched every shortcut to it break, you'll appreciate how gentle this is.
How it works
It sends a PATCH to api/v1/assets/{asset_id} with {"name": new_name}. The server updates the asset's display name and returns the updated asset record. The node echoes back the asset_id and the asset_name so you can confirm the change, plus a status_json with the result.
That's the entire mechanism - one request, one field. The id is the stable key; the name is just the label on the box. This is why the node is safe to run inside a workflow: it can't corrupt history, because it isn't part of the history.
Inputs and outputs that matter
Four required inputs: base_url, token, asset_id, and new_name. The two that matter: asset_id (the UUID of the asset you're renaming - get it from a save node or the web UI) and new_name (whatever you want it called next; the default is empty, so the node errors if you don't fill it in).
Outputs: asset_id (echo), asset_name (the new name, confirmed), and status_json. It's an output node, so it also prints a success line to the UI.
Installation
Part of the steliosot/ComfyUI-GenAsset pack. ComfyUI Manager → search GenAsset → install, or:
cd ComfyUI/custom_nodes
git clone https://github.com/steliosot/ComfyUI-GenAsset.git
Restart after. No extra dependencies; workspace token in the widget, GENASSET_WORKSPACE_TOKEN, or ComfyUI/user/genasset.json.
Common issues
- Empty
new_nameerrors - the default is empty for a reason: the pack won't let you rename an asset to nothing. Type a real name. - Wrong asset renamed - the failure mode to watch. Double-check the
asset_idbefore you queue, because this is a silent, instant change with no confirm. There's no undo short of renaming it back. - Nothing else changed - correct. Renaming updates the display name and nothing else. If you expected versions to move or ids to change, that was never this node's job.
It's a small node, and it's supposed to be. Renaming is a single, well-defined operation, and this is a single, well-defined tool for it. Sometimes the most useful nodes in a system are the ones with the least to think about.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| base_url | STRING | https://genasset.xyz | — |
| token | STRING | ComfyUI/user/genasset.json | — |
| asset_id | STRING | Asset id to rename. | |
| new_name | STRING | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| asset_id | STRING | — |
| asset_name | STRING | — |
| status_json | STRING | — |