Skip to main content

Remove Classification Enum Option

  • June 24, 2024
  • 1 reply
  • 47 views

Forum|alt.badge.img

Hello,

I would like to remove an option from a java classification.
I use the following code:

List<MetadataTemplate.FieldOperation> updates = new ArrayList<>();
delete.setOp(Operation.removeEnumOption);
delete.setFieldKey(“Box__Security__Classification__Key”);
delete.setEnumOptionKey(option.getKey());
updates.add(delete);
return MetadataTemplate.updateMetadataTemplate(boxAPI.getAPI(), boxAPI.getScope(),Metadata.CLASSIFICATION_TEMPLATE_KEY, updates);

but I get the following error:

The API returned an error code [403 | q5q8oghr0krwv557.0be56fb8d3a04661fa87b95f7aa219311] forbidden - Template operation can’t be performed due to existing policies on the template.

thank you in advance for your help

  • Participating Frequently
  • July 1, 2024

Hello!

Since Classification Instances have a larger impact on user permissions, modification (including removal) of labels/option values for the Classification Template can only be done through the Admin Console => Classification page.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings