Updates a piece of metadata on a folder.
The metadata instance can only be updated if the template has already been applied to the folder before. When editing metadata, only values that match the metadata template schema will be accepted.
The update is applied atomically. If any errors occur during the application of the operations, the metadata instance will not be changed.
The access token received from the authorization server in the OAuth 2.0 flow.
The unique identifier that represent a folder.
The ID for any folder can be determined
by visiting this folder in the web application
and copying the ID from the URL. For example,
for the URL https://*.app.box.com/folder/123
the folder_id is 123.
The root folder of a Box account is
always represented by the ID 0.
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.
add, replace, remove, test, move, copy "add"
The location in the metadata JSON object to apply the changes to, in the format of a JSON-Pointer.
The path must always be prefixed with a / to represent the root
of the template. The characters ~ and / are reserved
characters and must be escaped in the key.
"/currentState"
The value to be set or tested.
Required for add, replace, and test operations. For add,
if the value exists already the previous value will be overwritten
by the new value. For replace, the value must exist before
replacing.
For test, the existing value at the path location must match
the specified value.
"reviewed"
The location in the metadata JSON object to move or copy a value
from. Required for move or copy operations and must be in the
format of a JSON-Pointer.
"/nextState"
Returns the updated metadata template instance, with the custom template data included.
An instance of a metadata template, which has been applied to a file or folder.
The identifier of the item that this metadata instance
has been attached to. This combines the type and the id
of the parent in the form {type}_{id}.
"folder_59449484661,"
The name of the template.
"marketingCollateral"
An ID for the scope in which this template
has been applied. This will be enterprise_{enterprise_id} for templates
defined for use in this enterprise, and global for general templates
that are available to all enterprises using Box.
"enterprise_27335"
The version of the metadata instance. This version starts at 0 and increases every time a user-defined property is modified.
1
Whether the user can edit this metadata instance.
true
A UUID to identify the metadata instance.
36"01234500-12f1-1234-aa12-b1d234cb567e"
A unique identifier for the "type" of this instance. This is an internal system property and should not be used by a client application.
"properties-6bcba49f-ca6d-4d2a-a758-57fe6edf44d0"
The last-known version of the template of the object. This is an internal system property and should not be used by a client application.
2
A value for each of the fields that are present
on the metadata template.
For the global.properties template this can be
a list of zero or more fields,
as this template allows for any generic key-value pairs
to be stored stored in the template.
"Aaron Levie"