Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Ashley B.15's avatar
Ashley B.15
Helpful | Level 7
7 years ago
Solved

Add custom metadata to folder

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

  • Ashley B.15's avatar
    Ashley B.15
    7 years ago

    Sorry, sorted this. Should be 

     

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

8 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    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's avatar
    Ashley B.15
    Helpful | Level 7
    7 years ago

    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's avatar
    Ashley B.15
    Helpful | Level 7
    7 years ago

    Sorry, sorted this. Should be 

     

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

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    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's avatar
    Ashley B.15
    Helpful | Level 7
    7 years ago

    Hi Greg,

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

     

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    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's avatar
    gabestritz1
    New member | Level 2
    6 years ago

    Any update on custom metadata for team-owner folders?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!