Update Asset
Update image asset metadata.
Update the display name or tags for a workspace asset.
Endpoint
PATCH https://api.pixmato.com/v1/assets/{id}
Request
curl -X PATCH "https://api.pixmato.com/v1/assets/asset_01JY7R8Q7S2K3B4A5C6D7E8F9G" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "hero-product-v2.png",
"tags": ["product", "homepage"]
}'
Body
| Field | Type | Required | Description |
|---|---|---|---|
name |
string |
No | Updated display name. |
tags |
string[] |
No | Up to 20 asset labels. |
Response
{
"asset": {
"id": "asset_01JY7R8Q7S2K3B4A5C6D7E8F9G",
"name": "hero-product-v2.png",
"kind": "IMAGE",
"contentType": "image/png",
"size": 148203,
"url": "https://api.pixmato.com/workspaces/ws_01/assets/asset_01JY7R8Q7S2K3B4A5C6D7E8F9G/hero-product.png",
"storageKey": "workspaces/ws_01/assets/asset_01JY7R8Q7S2K3B4A5C6D7E8F9G/hero-product.png",
"tags": ["product", "homepage"],
"createdAt": "2026-11-06T12:00:00.000Z"
}
}