Actions26
- Upload Actions
- Transform Actions
- Generate Actions
- Asset Actions
- Widget Actions
- Library Actions
- Asset (Legacy, by Public ID) Actions
Asset (Legacy, by Public ID) → Update Asset Structured Metadata
AI-generatedSummary
Update an asset’s structured metadata in Cloudinary by public ID, optionally invalidating its CDN cache copies. Provide the metadata as a JSON object along with the asset’s resource and storage types.
Inputs
- Public ID (required) — Public ID of the asset to update.
- Resource Type — Asset type: Image, Video, or Raw. Defaults to Image.
- Type (required) — Storage type: Upload, Private, Authenticated, or Fetch. Defaults to Upload.
- Structured Metadata (required) — JSON object of metadata fields and values to attach to the asset; defaults to an empty object.
- Invalidate CDN — Whether to invalidate CDN cache copies of the asset. Defaults to false.
Output shape
A single Cloudinary API response item for the updated asset.
The operation makes a metadata update request; the exact response fields depend on Cloudinary’s API response.