Skip to content

TypeScript API / laikacms/assets / AssetUpdateSchema

Variable: AssetUpdateSchema ​

ts
const AssetUpdateSchema: StandardSchemaV1<{
  cacheControl?: string;
  customMetadata?: {
   [key: string]: string;
  };
  key: string;
  mimeType?: string;
}, {
  cacheControl?: string;
  customMetadata?: {
   [key: string]: string;
  };
  key: string;
  mimeType?: string;
}> & Struct<{
  cacheControl: optional<String>;
  customMetadata: optional<$Record<String, String>>;
  key: String;
  mimeType: optional<String>;
}>;

Data for updating an existing asset's metadata. Note: To replace the content, use the multipart upload flow.

Released under the MIT License.