---
schema_version: "1"
id: 8ab7dbe6d2a64320cad234353a2895f85466e22227aa685f3f991981bddea579
title: DocumentCategory
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_documentcategory.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_documentcategory.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5312faddfbdd6ccf55390e56c48d587c0ef195170b97972da68cf72b7b0e1cda
description: Represents a document category.
---
# DocumentCategory

Represents a document category.

## Parent Type

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

## File Suffix and Directory Location

DocumentCategory components have the suffix .documentCategory and are stored in the documentCategory folder.

## Version

DocumentCategory components are available in API version 59.0 and later.

## Special Access Rules

## Fields

| Field Name | Description |
| --- | --- |
| description | 
Field Type

string

Description

A description of the DocumentCategory.



 |
| isProtected | 

Field Type

boolean

Description

An auto-generated value that doesn’t impact the behavior of the metadata type. The default value is false.



 |
| masterLabel | 

Field Type

string

Description

Required.

The master label of the DocumentCategory. This internal label doesn’t get translated.





 |

## Declarative Metadata Sample Definition

The following is an example of a DocumentCategory component.

<?xml version="1.0" encoding="UTF-8"?>
<DocumentCategory xmlns="http://soap.sforce.com/2006/04/metadata">
    <masterLabel\>Address\_Proof</masterLabel\>
</DocumentCategory\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>\*</members\>
        <name\>DocumentCategory</name\>
    </types\>
    <version\>59.0</version\>
</Package\>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").