跳转到主要内容
PUT
Update asset metadata

授权

X-API-Key
string
header
必填

API key authentication. Generate an API key from your account settings at https://platform.comfy.org/profile/api-keys. Pass the key in the X-API-Key header.

路径参数

id
string<uuid>
必填

Asset ID

请求体

application/json
name
string

New display name for the asset

tags
string[]

Updated tags for the asset

mime_type
string

Updated MIME type of the asset

preview_id
string<uuid>

Updated preview asset ID

user_metadata
object

Updated custom metadata

响应

Asset updated successfully

id
string<uuid>
必填

Asset ID

updated_at
string<date-time>
必填

Timestamp of the update

name
string

Updated name of the asset

asset_hash
string

Blake3 hash of the asset content

Pattern: ^blake3:[a-f0-9]{64}$
tags
string[]

Updated tags for the asset

mime_type
string

Updated MIME type of the asset

user_metadata
object

Updated custom metadata