---
title: "Update asset metadata"
method: PUT
path: "/api/assets/{id}"
tags: ["assets"]
---

# Update asset metadata

`PUT /api/assets/{id}`

Updates the mutable metadata of an asset (name, tags, etc.). Binary content is immutable.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string — New display name for the asset
  - `user_metadata` object — Custom user metadata to set
  - `preview_id` string, uuid — ID of the asset to use as the preview
  - `mime_type` string, nullable — [cloud-only] MIME type override when auto-detection was wrong. Ignored by local ComfyUI.

## Response `200`

Asset updated

- AssetUpdated — Response body returned after updating an asset's metadata.
  - `id` string, uuid, required
  - `name` string
  - `hash` string, nullable — Blake3 content hash of the asset (preferred over asset_hash)
  - `asset_hash` string, nullable — Deprecated: use `hash` instead. Blake3 hash of the asset content.
  - `tags` string[]
  - `mime_type` string
  - `user_metadata` object
  - `prompt_id` string, uuid, nullable — Deprecated: use job_id instead. ID of the prompt that created this asset.
  - `job_id` string, uuid, nullable — ID of the job that created this asset
  - `updated_at` string, date-time, required

## Changes

- **2026-05-08** `c9640fded659` — 1 breaking, 4 info
  - the response property `asset_hash` became nullable for the status `200`
  - added the optional property `hash` to the response with the `200` status
  - added the optional property `job_id` to the response with the `200` status
  - added the optional property `prompt_id` to the response with the `200` status
  - …1 more
- **2026-05-05** `0d50eed29d03` — 1 info
  - added the new optional request property `mime_type`
- **2026-04-24** `a66055fa384e` — 5 warning, 7 info
  - removed the request property `mime_type`
  - removed the optional property `display_name` from the response with the `200` status
  - removed the optional property `file_path` from the response with the `200` status
  - removed the optional property `hash` from the response with the `200` status
  - …8 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/assets/:id/put.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/c9640fded659/schema)
