Skip to main content
API version 2024.0 A template for metadata that can be applied to files and folders.
id
string
example: 58063d82-4128-7b43-bba9-92f706befcdfThe ID of the metadata template.
type
string
example: metadata_templateThe value will always be metadata_template.Value is always metadata_template
copyInstanceOnItemCopy
boolean
example: trueWhether or not to include the metadata when a file or folder is copied.
displayName
string
example: Product InfoThe display name of the template. This can be seen in the Box web app and mobile apps.
fields
object[]
An ordered list of template fields which are part of the template. Each field can be a regular text field, date field, number field, as well as a single or multi-select list.
hidden
boolean
example: trueDefines if this template is visible in the Box web app UI, or if it is purely intended for usage through the API.
scope
string
example: enterprise_123456The scope of the metadata template can either be global or enterprise_*. The global scope is used for templates that are available to any Box enterprise. The enterprise_* scope represents templates that have been created within a specific enterprise, where * will be the ID of that enterprise.
templateKey
string
example: ^[a-zA-Z_][-a-zA-Z0-9_]*$A unique identifier for the template. This identifier is unique across the scope of the enterprise to which the metadata template is being applied, yet is not necessarily unique across different enterprises.
{
  "id": "58063d82-4128-7b43-bba9-92f706befcdf",
  "type": "metadata_template",
  "copyInstanceOnItemCopy": true,
  "displayName": "Product Info",
  "fields": [
    {
      "description": "The category",
      "displayName": "Category",
      "hidden": true,
      "key": "category",
      "options": [
        {
          "key": "Category 1",
          "id": "45dc2849-a4a7-40a9-a751-4a699a589190"
        }
      ],
      "type": "string",
      "id": "822227e0-47a5-921b-88a8-494760b2e6d2"
    }
  ],
  "hidden": true,
  "scope": "enterprise_123456",
  "templateKey": "productInfo"
}