/files/{file_id}/metadata/enterprise/securityClassification-6VMVochwUWoAdd classification to file
Adds a classification to a file 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
/files/:id//enterprise_12345/securityClassification-6VMVochwUWo.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
A 400 is returned: Returns an error when the request body is not valid.
-
schema_validation_failed- The request body contains a value for a field that either does not exist, or for which the value or type does not match the expected field type. An example might be an unknown option for anenumormultiSelectfield. A 404 is returned: Returns an error when the file or metadata template was not found. -
not_found- The file could not be found, or the user does not have access to the file. -
instance_tuple_not_found- The metadata template was not found. A 409 is returned: Returns an error when an instance of this metadata template is already present on the file. -
tuple_already_exists- An instance of them metadata template already exists on the file. Any other status is an error: An unexpected client error.