Create a donation-type email template variant
Creates or returns a donation-type-specific automated email template. Ordinary variants clone the default; DAF grant, IRA / QCD and explicitly contextual DAF advisor acknowledgments start with source-specific content and remain turned off until reviewed. DAF advisor and Direct soft-credit uses share the soft_credit template. Requires the admin API auth middleware and user permission checks.
Authorizations
Passport bearer token authentication for legacy admin sessions.
Body
Variant creation payload. The controller validates emailset_id, trigger, and donation_type, then scopes the lookup to the authenticated client.
Email set ID. Validation rule: required|integer.
42
Template trigger to clone. Validation rule: required|string.
"pay_receipt"
Variant key to create. DAF grant and IRA / QCD variants are created turned off. Validation rule: required|string|in:in_kind,soft_credit,daf,qcd.
in_kind, soft_credit, daf, qcd "in_kind"
Use giving_source=daf and recipient_role=soft_credit with donation_type=soft_credit to create a disabled DAF advisor thank-you starter. Existing rows are returned without rewriting and include source_template_setup_issue when still copied from Standard. Missing context preserves ordinary Direct clone behavior.
Response
The requested variant already existed.
Existing Emailtemplate model for the requested variant.