Update classification on file
Changed onUpdates a classification on a file.
The classification can only be updated if a classification has already been applied to the file before. When editing classifications, only values are defined for the enterprise will be accepted.
Request
- Base URLhttps://api.box.com/2.0
- URLhttps://api.box.com/2.0/files/{file_id}/metadata/enterprise/securityClassification-6VMVochwUWo
- AuthOAuth 2Authorization code: https://account.box.com/api/oauth2/authorizeToken URL: https://api.box.com/oauth2/token
Path parameters
The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/files/123 the file_id is 123.
Request body
Example request
[
{
"op": "replace",
"path": "/Box__Security__Classification__Key",
"value": "Sensitive"
}
]Response
Returns the updated classification metadata template instance.
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
}Changes
- warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status
- warning