---
schema_version: "1"
id: 77c18f8dc793206b48a4618199b4cdf95e33bff87efb02b675e6152cccf8f6f2
title: DocumentType
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_documenttype.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_documenttype.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d0e8c06dc08cf77ea5ec6bb9e2b77a782c68e53435fbed12c8b9c41abfe988dd
description: Represents a document type.
---
# DocumentType

Represents a document type.

## 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

DocumentType components have the suffix .documentType and are stored in the documentTypes folder.

## Version

DocumentType 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 DocumentType.



 |
| isActive | 

Field Type

boolean

Description

Required.

Specifies whether the DocumentType is active.



 |
| masterLabel | 

Field Type

string

Description

Required.

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





 |

## Declarative Metadata Sample Definition

The following is an example of a DocumentType component.

<?xml version="1.0" encoding="UTF-8"?>
<DocumentType xmlns="http://soap.sforce.com/2006/04/metadata">
    <description\>Utility\_Bill</description\>
    <isActive\>true</isActive\>
    <masterLabel\>Utility\_Bill</masterLabel\>
</DocumentType\>

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\>DocumentType</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.").