---
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

## Response `200`

Asset updated

- AssetUpdated — Response body returned after updating an asset's metadata.
  - `id` string, uuid, required
  - `name` string
  - `asset_hash` string
  - `tags` string[]
  - `mime_type` string
  - `user_metadata` object
  - `updated_at` string, date-time, required

## Changes

- **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/a66055fa384e/schema)
