> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Classifications

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = localizeLink(href);
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

export const MultiRelatedLinks = ({sections = []}) => {
  if (!sections || sections.length === 0) {
    return null;
  }
  return <div className="space-y-8">
      {sections.map((section, index) => <RelatedLinks key={index} title={section.title} items={section.items} />)}
    </div>;
};

export const RelatedLinks = ({title, items = []}) => {
  const getBadgeClass = badge => {
    if (!badge) return "badge-default";
    const badgeType = badge.toLowerCase().replace(/\s+/g, "-");
    return `badge-${badge === "ガイド" ? "guide" : badgeType}`;
  };
  if (!items || items.length === 0) {
    return null;
  }
  return <div className="my-8">
      {}
      <h3 className="text-sm font-bold uppercase tracking-wider mb-4">{title}</h3>

      {}
      <div className="flex flex-col gap-3">
        {items.map((item, index) => <a key={index} href={item.href} className="py-2 px-3 rounded related_link hover:bg-[#f2f2f2] dark:hover:bg-[#111827] flex items-center gap-3 group no-underline hover:no-underline border-b-0">
            {}
            <span className={`px-2 py-1 rounded-full text-xs font-semibold uppercase tracking-wide flex-shrink-0 ${getBadgeClass(item.badge)}`}>
              {item.badge}
            </span>

            {}
            <span className="text-base">{item.label}</span>
          </a>)}
      </div>
    </div>;
};

Box enables users and applications to apply a security classification label
to files, and cascade a classification label to folders and their contents.
Classifications help protect shared sensitive content from negligent access
through Box's Governance and Shield products.

The Classification API can be used to create new classification labels
and to assign classifications to files and folders.

<Frame border center>
  <img src="https://mintcdn.com/box/7Uky7FPvsR-xkqwh/guides/metadata/classification-example.png?fit=max&auto=format&n=7Uky7FPvsR-xkqwh&q=85&s=167942b5befa6db4b7b230401fa507df" alt="String field" width="1100" height="463" data-path="guides/metadata/classification-example.png" />
</Frame>

Classifications use the <Link href="/guides/metadata">Metadata APIs</Link> to create classification
labels, and to assign classifications to files and folders. For more details on
metadata templates and instances, please explore our guides
on <Link href="/guides/metadata">Metadata</Link>.

## Classifications & Metadata

Working with classifications requires a developer to work with metadata
templates and instances.

* **The Classification Template:**  to work with classifications, an enterprise needs to have a classification metadata template with at least one classification. This template needs to have a `scope`/`templateKey` of `enterprise.securityClassification-6VMVochwUWo`. This template will hold the possible classification levels, their label names, descriptions, and `colorID` values.
* **Template Instances**: to apply a classification to a file or folder, a developer applies an instance of the `enterprise.securityClassification-6VMVochwUWo` template to the item. When the template is applied, one of the classifications is selected from the list of classifications on the template.

<RelatedLinks
  title="RELATED APIS"
  items={[
{ label: translate("Add classification to file"), href: "/reference/post-files-id-metadata-enterprise-securityClassification-6VMVochwUWo", badge: "POST" },
{ label: translate("Add classification to folder"), href: "/reference/post-folders-id-metadata-enterprise-securityClassification-6VMVochwUWo", badge: "POST" }
]}
/>
