Skip to main content
PATCH
Update an email template

Authorizations

X-API-KEY
string
header
required

API key for authentication. Pass your key in the X-API-KEY header.

Headers

X-API-KEY
string | null
Authorization
string | null
X-Workspace-Id
string | null

Path Parameters

template_id
string
required

Body

application/json

Request body for updating an email template. Send only what changes.

name
string | null

New template name.

Required string length: 1 - 200
subject
string | null

Email subject line. Supports {{variable}} placeholders such as {{candidate_name}}, {{job_title}} and {{company_name}}.

Required string length: 1 - 500
content
string | null

Email HTML body. Supports {{variable}} placeholders; invitation emails should include {{interview_link}}. A template whose placeholders cannot be filled when sending falls back to HeyMilo's default email.

Required string length: 1 - 100000
blackout_period
BlackoutPeriodInput · object | null

New blackout window.

Response

Successful Response

data
EmailTemplateResponse · object
required

A single email template used for candidate communications.

Templates define the subject line and HTML body for emails sent at various stages of the interview workflow (invitations, nudges, etc.).

meta
Meta · object | null

Optional metadata. Shape varies by endpoint.