box_metadata_set_instance_on_file_tool
Apply structured metadata templates to files in Box, enabling consistent categorization and organization of document attributes.
Instructions
Set a metadata template instance on a specific file.
Args: client (BoxClient): An authenticated Box client. template_key (str): The key of the metadata template to set. file_id (str): The ID of the file to set the metadata on. metadata (Dict[str, Any]): The metadata instance to set, as a dictionary. Metadata example: {'test_field': 'Test Value', 'date_field': '2023-10-01T00:00:00.000Z', 'float_field': 3.14, 'enum_field': 'option1', 'multiselect_field': ['option1', 'option2']}
Returns: dict: The response from the Box API after setting the metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_key | Yes | ||
| file_id | Yes | ||
| metadata | Yes |