I have objects in s3 (IBM cos), I'm trying to update metadata like custom user metadata for objects in a bucket. I'm using the below snippet to update the metadata.
But when I retrieve the object after this I'm getting empty content.
import boto3 as client
s3 = client.resource('s3')
obj = s3.Bucket('MyBucket').Object('objectKey')
obj.put(Metadata={'name':'newName'})
Is there any other way to do this or Am I doing it wrongly?