Updates a metadata template.
The metadata template can only be updated if the template already exists.
The update is applied atomically. If any errors occur during the application of the operations, the metadata template will not be changed.
The access token received from the authorization server in the OAuth 2.0 flow.
The scope of the metadata template.
global, enterprise The name of the metadata template.
The type of change to perform on the template. Some of these are hazardous as they will change existing templates.
editTemplate, addField, reorderFields, addEnumOption, reorderEnumOptions, reorderMultiSelectOptions, addMultiSelectOption, editField, removeField, editEnumOption, removeEnumOption, editMultiSelectOption, removeMultiSelectOption "addEnumOption"
The data for the operation. This will vary depending on the operation being performed.
{ "name": "Aaron Levie" }For operations that affect a single field this defines the key of the field that is affected.
"category"
For operations that affect multiple fields this defines the keys of the fields that are affected.
["category", "name"]For operations that affect a single enum option this defines
the key of the option that is affected.
"option1"
For operations that affect multiple enum options this defines
the keys of the options that are affected.
["option1", "option2", "option3"]For operations that affect a single multi select option this defines the key of the option that is affected.
"option1"
For operations that affect multiple multi select options this defines the keys of the options that are affected.
["option1", "option2", "option3"]Returns the updated metadata template, with the custom template data included.
A template for metadata that can be applied to files and folders.
The ID of the metadata template.
"58063d82-4128-7b43-bba9-92f706befcdf"
The value will always be metadata_template.
metadata_template "metadata_template"
The 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.
"enterprise_123456"
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.
64"productInfo"
The display name of the template. This can be seen in the Box web app and mobile apps.
4096"Product Info"
Defines if this template is visible in the Box web app UI, or if it is purely intended for usage through the API.
true
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.
Whether or not to include the metadata when a file or folder is copied.
true