**Source URL:** https://general.veevavault.dev/qualityone/mdl/component-types/docrelationshiptype.md

# Docrelationshiptype

**Class: ** `metadata`

Document relationship types define the type on relationship between two documents.

Learn about <a href="https://platform.veevavault.help/en/lr/21330" target="_blank">Document Relationships in Vault Help</a>.

| Attribute | Metadata | Description |
| --- | --- | --- |
| label | Type: StringRequiredMax length: 40 | UI-friendly string in the Vault’s base language. |
| active | Type: BooleanRequired | Indicates whether the component is active. |
| single_use | Type: Boolean | True when only one relationship of this type can be created for the source document. |
| target_doctype | Type: StringMax length: 1500 | The Doctype of the related document. |
| source_version_specific | Type: Boolean | Whether the relationship is bound to the current version of the source document. |
| carry_forward_source_specific | Type: Boolean | Whether the relationship will be brought forward when the source document is versioned. |
| target_version_specific | Type: Boolean | Whether the relationship is bound to the current version of the target document. |
| carry_forward_target_specific | Type: Boolean | Whether the relationship will be brought forward when the target document is versioned. |
| relationship_filter | Type: XMLStringMax length: 32000 | A criteria which restricts the documents that can be related using this type. |

### Supported Operations {#supported-operations}

| Operation | Support |
| --- | --- |
| Create | Yes* |
| Recreate | Yes* |
| Alter | Yes* |
| Drop | Yes |
| Rename | Yes |
| Describe | Yes |
| Generate Recreate | Yes |
| Queryable | No |
**Notes:**

<ul style="padding-left:1.5em;margin-top:0.5rem"><li>**Create, Recreate, Alter:** <span>MDL Operation is supported, but the Component Type contains field(s) that use proprietary XML. Direct modification of the XML is not supported or recommended. Instead, creating and/or updating the component is better suited through the Admin UI.</span></li></ul>


---

**Previous:** [Docparticipantrule](/qualityone/mdl/component-types/docparticipantrule)  
**Next:** [Doctype](/qualityone/mdl/component-types/doctype)