Update email metadata or replace the email body.
cURL
curl --request PATCH \ --url https://api.sequenzy.com/api/v1/emails/{emailId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "subject": "<string>", "previewText": "<string>", "html": "<string>", "blocks": [ {} ] } '
{ "success": true, "email": { "id": "email_123", "companyId": "company_123", "name": "Welcome", "subject": "Updated welcome", "previewText": null, "blocks": [{ "id": "block_123", "type": "text", "variant": "html", "content": "<p>Updated body</p>" }], "createdAt": "2026-04-19T12:00:00.000Z", "updatedAt": "2026-04-19T12:05:00.000Z" } }
null
html
blocks
curl -X PATCH "https://api.sequenzy.com/api/v1/emails/email_123" \ -H "Authorization: Bearer API_KEY" \ -H "Content-Type: application/json" \ -d '{"subject":"Updated welcome","html":"<p>Updated body</p>"}'