box_metadata_set_instance_on_file_tool
Assign custom metadata to a file using a specific template. Required inputs: template key, file ID, and metadata values. Supports various data types including text, dates, numbers, and options. Integrates with Box API for metadata management.
Instructions
Set a metadata instance on a file.
Args: ctx (Context): The context object containing the request and lifespan context. template_key (str): The key of the metadata template. file_id (str): The ID of the file to set the metadata on. metadata (dict): The metadata to set. 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 |
---|---|---|---|
file_id | Yes | ||
metadata | Yes | ||
template_key | Yes |