Skip to main content
POST
Create a donation-type email template variant

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Body

application/json

Variant creation payload. The controller validates emailset_id, trigger, and donation_type, then scopes the lookup to the authenticated client.

emailset_id
integer
required

Email set ID. Validation rule: required|integer.

Example:

42

trigger
string
required

Template trigger to clone. Validation rule: required|string.

Example:

"pay_receipt"

donation_type
enum<string>
required

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.

Available options:
in_kind,
soft_credit,
daf,
qcd
Example:

"in_kind"

receipt_context
object | null

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.

emailtemplate
object

Existing Emailtemplate model for the requested variant.