Retrieves the classification metadata template and lists all the classifications available to this enterprise.
This API can also be called by including the enterprise ID in the
URL explicitly, for example
/metadata_templates/enterprise_12345/securityClassification-6VMVochwUWo/schema
.
This operation is performed by calling function getClassificationTemplate
.
See the endpoint docs at API Reference.
await client.classifications.getClassificationTemplate();
- headersInput
GetClassificationTemplateHeadersInput
- Headers of getClassificationTemplate method
- cancellationToken
undefined | CancellationToken
- Token used for request cancellation.
This function returns a value of type ClassificationTemplate
.
Returns the securityClassification
metadata template, which contains
a Box__Security__Classification__Key
field that lists all the
classifications available to this enterprise.
Adds one or more new classifications to the list of classifications available to the enterprise.
This API can also be called by including the enterprise ID in the
URL explicitly, for example
/metadata_templates/enterprise_12345/securityClassification-6VMVochwUWo/schema
.
This operation is performed by calling function addClassification
.
See the endpoint docs at API Reference.
await client.classifications.addClassification([
new AddClassificationRequestBody({
data: {
key: getUuid(),
staticConfig: {
classification: {
colorId: 4,
classificationDefinition: 'Other description',
} satisfies AddClassificationRequestBodyDataStaticConfigClassificationField,
} satisfies AddClassificationRequestBodyDataStaticConfigField,
} satisfies AddClassificationRequestBodyDataField,
}),
]);
- requestBody
readonly AddClassificationRequestBody[]
- Request body of addClassification method
This function returns a value of type ClassificationTemplate
.
Returns the updated securityClassification
metadata template, which
contains a Box__Security__Classification__Key
field that lists all
the classifications available to this enterprise.
Updates the labels and descriptions of one or more classifications available to the enterprise.
This API can also be called by including the enterprise ID in the
URL explicitly, for example
/metadata_templates/enterprise_12345/securityClassification-6VMVochwUWo/schema
.
This operation is performed by calling function updateClassification
.
See the endpoint docs at API Reference.
await client.classifications.updateClassification([
new UpdateClassificationRequestBody({
enumOptionKey: classification.key,
data: {
key: updatedClassificationName,
staticConfig: {
classification: {
colorId: 2,
classificationDefinition: updatedClassificationDescription,
} satisfies UpdateClassificationRequestBodyDataStaticConfigClassificationField,
} satisfies UpdateClassificationRequestBodyDataStaticConfigField,
} satisfies UpdateClassificationRequestBodyDataField,
}),
]);
- requestBody
readonly UpdateClassificationRequestBody[]
- Request body of updateClassification method
This function returns a value of type ClassificationTemplate
.
Returns the updated securityClassification
metadata template, which
contains a Box__Security__Classification__Key
field that lists all
the classifications available to this enterprise.
When an enterprise does not yet have any classifications, this API call initializes the classification template with an initial set of classifications.
If an enterprise already has a classification, the template will already exist and instead an API call should be made to add additional classifications.
This operation is performed by calling function createClassificationTemplate
.
See the endpoint docs at API Reference.
Currently we don't have an example for calling createClassificationTemplate
in integration tests
- requestBodyInput
CreateClassificationTemplateRequestBodyInput
- Request body of createClassificationTemplate method
This function returns a value of type ClassificationTemplate
.
Returns a new securityClassification
metadata template, which
contains a Box__Security__Classification__Key
field that lists all
the classifications available to this enterprise.