curl --request PUT \
--url https://cloud.comfy.org/api/assets/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"tags": [
"<string>"
],
"mime_type": "<string>",
"preview_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_metadata": {}
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"asset_hash": "<string>",
"tags": [
"<string>"
],
"mime_type": "<string>",
"user_metadata": {}
}Updates an asset’s metadata. At least one field must be provided. Only name, tags, and user_metadata can be updated.
curl --request PUT \
--url https://cloud.comfy.org/api/assets/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"tags": [
"<string>"
],
"mime_type": "<string>",
"preview_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_metadata": {}
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"asset_hash": "<string>",
"tags": [
"<string>"
],
"mime_type": "<string>",
"user_metadata": {}
}API key authentication. Generate an API key from your account settings at https://comfy.org/account. Pass the key in the X-API-Key header.
Asset ID
Asset updated successfully
Asset ID
Timestamp of the update
Updated name of the asset
Blake3 hash of the asset content
Updated tags for the asset
Updated MIME type of the asset
Updated custom metadata
Was this page helpful?