Hello!
I've just started using the Dropbox Python API, but am a bit confused on how to add custom metadata to new or exists files.
I've tried to defined my own PropertyGroup with the data stored in a PropertyField (as shown in the code below). However, passing this as a parameter of dbx.files_upload() causes the process to freezes up. Should the template_id of the property group be defined differently?
data = dropbox.file_properties.PropertyField('foo', 'bar')
my_property_group = dropbox.file_properties.PropertyGroup()
my_property_group .template_id = '/|test_template'
my_property_group .fields = [data]
with open(r'C:\test_file.txt', "rb") as f:
dbx.files_upload(f.read(), '/test_file.txt', mute = True, property_groups=[my_property_group ])Any help on this would be much appreciated!