Classification
An instance of the classification metadata template, containing the classification applied to the file or folder. To get more details about the classification applied to an item, request the classification metadata template.Attributes and example
Attributes and example
| Property | Type | Required | Description |
|---|---|---|---|
Box__Security__Classification__Key | string | No | The name of the classification applied to the item. |
$parent | string | No | 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}. |
$template | enum<string> | No | The value will always be securityClassification-6VMVochwUWo. Available options: securityClassification-6VMVochwUWo. |
$scope | string | No | The scope of the enterprise that this classification has been applied for. This will be in the format enterprise_{enterprise_id}. |
$version | integer | No | The version of the metadata instance. This version starts at 0 and increases every time a classification is updated. |
$type | string | No | The unique ID of this classification instance. This will be include the name of the classification template and a unique ID. |
$typeVersion | number | No | The version of the metadata template. This version starts at 0 and increases every time the template is updated. This is mostly for internal use. |
$canEdit | boolean | No | Whether an end user can change the classification. |
Example
Classification Template
A metadata template that holds the security classifications defined by an enterprise.Attributes and example
Attributes and example
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The ID of the classification template. |
type | enum<string> | Yes | The value will always be metadata_template. Available options: metadata_template. |
scope | string | Yes | The scope of the classification template. This is in the format enterprise_{id} where the id is the enterprise ID. |
templateKey | enum<string> | Yes | The value will always be securityClassification-6VMVochwUWo. Available options: securityClassification-6VMVochwUWo. |
displayName | enum<string> | Yes | The name of this template as shown in web and mobile interfaces. Available options: Classification. |
hidden | boolean | No | Determines if the template is always available in web and mobile interfaces. |
copyInstanceOnItemCopy | boolean | No | Determines if classifications are copied along when the file or folder is copied. |
fields | array of object | Yes | A list of fields for this classification template. This includes only one field, the Box__Security__Classification__Key, which defines the different classifications available in this enterprise. |
Example
