Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

Java SDK Update metadata attribute on a file

Answered
New post

Comments

2 comments

  • 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.

    0
    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!

    0
    Comment actions Permalink

Please sign in to leave a comment.