Classifications on folders
Add classification to folder
Adds a classification to a folder by specifying the label of the classification to add.
This API can also be called by including the enterprise ID in the URL explicitly, for example /folders/:id/enterprise_12345/securityClassification-6VMVochwUWo.
post/folders/{folder_id}/metadata/enterprise/securityClassification-6VMVochwUWo
Path parameters
folder_idstring required
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.
Request body
Example request
{
"Box__Security__Classification__Key": "Sensitive"
}Response
Returns the classification template instance that was applied to the folder.
Example response
{
"Box__Security__Classification__Key": "Sensitive",
"$parent": "folder_59449484661,",
"$template": "securityClassification-6VMVochwUWo",
"$scope": "enterprise_27335",
"$version": 1,
"$type": "securityClassification-6VMVochwUWo-fd31537a-0f95-4d86-9f2b-5974a29978f8",
"$typeVersion": 5,
"$canEdit": true
}