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

Metadata and copied files

Answered
New post

Comments

3 comments

  • Official comment
    Peter Christensen

    Hi

    There is flag you can set when you create the metadata template. https://box.dev/reference/resources/metadata-template/#param-copyInstanceOnItemCopy

    'copyInstanceOnItemCopy': Whether or not to copy any metadata attached to a file or folder when it is copied. By default, metadata is not copied along with a file or folder when it is copied.

    I don't think the API allows you to change the value once the template is created so you will probably have to re-create the template with the value set

    Best regards,

    Peter Christensen, Platform Solutions Engineer, Box

     
    Comment actions Permalink
  • szinski

    Thanks, Peter, that helps a lot!

    0
    Comment actions Permalink
  • MP Coates

    By default the value is set to false. You can change this value to true within the API - Update Metadata Template

    You will need to define your template scope and key, but this is the fix.

    [{"op": "editTemplate", "data": {"copyInstanceOnItemCopy": true}}]
    0
    Comment actions Permalink

Post is closed for comments.