Skip to main content
PATCH
Edit a draft donor message

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Path Parameters

email_id
integer<int64>
required

Draft donor-email ID to update. The controller loads this ID from the donor email table before saving body and subject changes.

Body

application/json

Optional fields to update on a draft in the authenticated workspace. Body-only edits preserve the saved attachment identity; supplying fileName replaces its attachment marker.

subject
string | null

Optional replacement subject for the draft.

Example:

"Updated sponsorship message"

message
string | null

Optional replacement body. Saved attachment identity is retained when no replacement file is supplied.

Example:

"Thank you for your update."

fileName
string | null

Optional display filename appended to the message as an attachment marker.

Example:

"letter.pdf"

fileStorageKey
string | null

Optional S3 storage key paired with fileName.

Example:

"messages/letter-8712.pdf"

Response

Draft was updated.

message
string

Update confirmation.

Example:

"Message draft successfully updated"