---
schema_version: "1"
id: ea1270937ad50f990028be5e2055aa6c81a7869427a3500887d31e5185947765
title: Template Match Input
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/connect_request_template_match_input.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/connect_request_template_match_input.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c1e94125a68dc379c0706b4ca9399a19e2bae118a90ecc7482f5c31158166d79
description: Input configuration for template matching against an uploaded or hosted document.
---
# Template Match Input

Input configuration for template matching against an uploaded or hosted document.

## Properties

| Property Name | Type | Description | Required or Optional |
| --- | --- | --- | --- |
| sourceType | String | The source type of the document. Valid values are ContentDocument, AmazonS3, or ContentHub. | Required |
| contentDocumentId | String | The native Salesforce ContentDocument ID. | Required when sourceType is set to ContentDocument. |
| documentUrl | String | The pre-signed Amazon S3 URL pointing to the document location. | Required when sourceType is set to AmazonS3. |
| contentHubRepositoryId | String | The Content Hub repository ID for the external connection. | Required when sourceType is set to ContentHub. |
| externalId | String | The external object key within the Content Hub repository. | Required when sourceType is set to ContentHub. |
| templates | List<String> | A list of template IDs or developer names to match against. If omitted, the top 20 newest active templates are considered. | Optional |