Edit a draft donor message
Updates the subject, message body, and optional S3 attachment marker for an existing draft donor message. Admin users call this before approving draft communications in the email manager. Requires the admin API auth middleware and user permission checks.
Authorizations
Passport bearer token authentication for legacy admin sessions.
Path Parameters
Draft donor-email ID to update. The controller loads this ID from the donor email table before saving body and subject changes.
Body
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.
Optional replacement subject for the draft.
"Updated sponsorship message"
Optional replacement body. Saved attachment identity is retained when no replacement file is supplied.
"Thank you for your update."
Optional display filename appended to the message as an attachment marker.
"letter.pdf"
Optional S3 storage key paired with fileName.
"messages/letter-8712.pdf"
Response
Draft was updated.
Update confirmation.
"Message draft successfully updated"