Box Developer Documentation

Metadata fields

Metadata fields

A metadata template field describes a specific piece of data within a metadata template. For example, the ID of an invoice might be represented as an id field on an invoiceData template.

Every metadata template contains a list of field objects, and each field is of one of the following types:

stringA text field
floatA numeric input field
dateA date picker field
enumA dropdown list for selecting a single value
multiSelectA dropdown list for selecting multiple values

Basic field types

The basic field types are a string for a text field, float for a numeric field, and date for a date-time picker field.

Lists field types

Additionally, metadata templates support two field types to represent dropdown lists. An enum field represents a list of predefined items that a user can select, while a multiSelect field represents a list of items where the user can select more than one value.