cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to hear from you. What do you use Dropbox for?
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Add custom metadata to folder

Helpful | Level 6

I see you can add properties to a file, is there anything availble for folders?

1 Accepted Solution

Accepted Solutions
Highlighted

Re: Add custom metadata to folder

Helpful | Level 6

Sorry, sorted this. Should be 

 

List<PropertyFieldTemplate> p = new List<PropertyFieldTemplate>(){
new PropertyFieldTemplate("FieldName", "FieldDesc", String.Instance),
};

View solution in original post

6 Replies 6
Highlighted

Re: Add custom metadata to folder

Dropboxer
Dropboxer

The /2/file_properties/properties/add endpoint can be used to add properties to folders, but only for user-owned templates. It doesn't support adding properties to folders for team-owned templates.

If you do want to use team-owned templates for this, let me know and I'll pass this along as a feature request.

Highlighted

Re: Add custom metadata to folder

Helpful | Level 6

Hi Greg,

Thanks for getting back to me. I'm currently trying to create a Template using the NET SDK .FileProperties.TemplatesAddForTeamAsync

How do you set the property type? I'm using the following

List<PropertyFieldTemplate> p = new List<PropertyFieldTemplate>(){
new PropertyFieldTemplate("FieldName", "FieldDesc", new PropertyType().AsString),
};

When I use new PropertyType().AsString it returns null. Not sure how I should set this. Thanks

Highlighted

Re: Add custom metadata to folder

Helpful | Level 6

Sorry, sorted this. Should be 

 

List<PropertyFieldTemplate> p = new List<PropertyFieldTemplate>(){
new PropertyFieldTemplate("FieldName", "FieldDesc", String.Instance),
};

View solution in original post

Highlighted

Re: Add custom metadata to folder

Dropboxer
Dropboxer

I'm glad to see you already sorted this out.

I also see that you are using team-owned templates, so I'll send this along as a feature request for support for setting properties for team-owned templates on folders in addition to files.

Highlighted

Re: Add custom metadata to folder

Helpful | Level 6

Hi Greg,

Thanks, Would it be possible to get a reference for this feature request please?

 

Highlighted

Re: Add custom metadata to folder

Dropboxer
Dropboxer

We don't have a separate public feature request tracker for the API. This forum thread serves as the reference for this request and I'll follow up here if/when I have any news on it.

Polls
Do you know how to organize your files and folders?
<b>We have created a guide on folder best practice, so you can get organized now <a href="https://www.dropboxforum.com/t5/Business-Tips-tricks/Folder-structure-best-practice/m-p/428456#M39"><u>check it out here</u></a>.</b>

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?