Welcome to the new Box Support website. Check out all the details here on what’s changed.

Java SDK Update metadata attribute on a file

New post



  • sgarlanka

    Is "foo" already a metadata attribute on the file or is something you are adding. If you are adding it, the Github code should work. If you are updating the attribute, then you have to do file.updateMetadata(file.getMetadata().replace("/foo", "bar")) as shown here.

    Comment actions Permalink
  • smartduck

    Thanks for your feedback.

    The problem was that I used the displayed name as path.

    If i log in, in the Box web app I see 'retentie' diplayed as metadata attribute.
    The attribute has another name as id 'retentieConversion'.


    Problem solved!

    Comment actions Permalink

Please sign in to leave a comment.