How to set metaData to R2 object

I am using aws s3 based API to interact with r2 object.

I am trying to set metadata like this
new PutObjectCommand({
  Metadata: {}
});


But when I try to see metadata from the cloudflare dashboard.

I can't see any metadata for that specific object.
Was this page helpful?