This document describes the tools available in the box_tools_metadata module for metadata template and instance management in Box.
Create a metadata template.
- Arguments:
ctx: Request contextdisplay_name: Display name of the templatefields: List of fields for the templatetemplate_key: Optional template key
Get a metadata instance on a file.
- Arguments:
ctx: Request contextfile_id: ID of the filetemplate_key: Key of the template
...and more tools for setting, updating, and deleting metadata instances. Refer to the source for additional functions.
Refer to src/tools/box_tools_metadata.py for implementation details.