Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

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.