Cloudinary icon

Cloudinary

Upload images and videos, generate images with AI from text prompts or reference images, build optimized transformation and delivery URLs, generate video players, and manage, search, tag, and edit metadata in your Cloudinary media library

Asset (Legacy, by Public ID) → Update Asset Structured Metadata

AI-generated

Summary

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.

Links

Discussion