cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

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: 

Add custom metadata to folder

Add custom metadata to folder

Ashley B.15
Helpful | Level 7
Go to solution

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

1 Accepted Solution

Accepted Solutions

Ashley B.15
Helpful | Level 7
Go to solution

Sorry, sorted this. Should be 

 

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

View solution in original post

8 Replies 8

Greg-DB
Dropbox Staff
Go to solution

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.

Ashley B.15
Helpful | Level 7
Go to solution

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

Ashley B.15
Helpful | Level 7
Go to solution

Sorry, sorted this. Should be 

 

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

Greg-DB
Dropbox Staff
Go to solution

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.

Ashley B.15
Helpful | Level 7
Go to solution

Hi Greg,

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

 

Greg-DB
Dropbox Staff
Go to solution

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.

gabestritz1
New member | Level 2
Go to solution

Any update on custom metadata for team-owner folders?

Greg-DB
Dropbox Staff
Go to solution

@gabestritz1 No, unfortunately I don't have an update on this request.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    gabestritz1 New member | Level 2
  • User avatar
    Ashley B.15 Helpful | Level 7
What do Dropbox user levels mean?