{"Status":true,"Message":"","Response":{"post":{"postuid":"67003365-5321-4753-9ba6-a4e0c1d517b8","tenantuid":"d8b744fc-2e70-4089-bb80-dd1d08f6c7b2","projectuid":"542e5f51-33cf-401f-aebe-4324ebe36fe4","title":"Create or Update an Email","slug":"reference/create-or-update-email","html":"\u003Cp\u003ECreates or updates an email. For updates, the email id must be set to an existing email id. For creation, the email id must be set to 0.\u003C/p\u003E\u003Cdiv class=\u0022api_header\u0022\u003EPath Parameters\u003C/div\u003E\u003Csection class=\u0022api_parameters\u0022\u003E\u003Csection class=\u0022api_param\u0022\u003E\u003Cdiv class=\u0022api_param_header\u0022\u003E\u003Cspan class=\u0022p_name\u0022\u003Eid\u003C/span\u003E\u003Cspan class=\u0022p_type\u0022\u003Enumber\u003C/span\u003E\u003Cspan class=\u0022p_isrequired\u0022\u003Erequired\u003C/span\u003E\u003C/div\u003E\u003Cdiv\u003EThe email to update.\u003C/div\u003E\u003C/section\u003E\u003C/section\u003E\u003Cdiv class=\u0022api_header\u0022\u003EHTTP Request Examples\u003C/div\u003E\u003Cdiv class=\u0022code_wrapper\u0022\u003E\u003Cdiv class=\u0022d-flex header\u0022\u003E\u003C/div\u003E\u003Cdiv class=\u0022code\u0022 data-language=\u0022json\u0022\u003E{\n  \u0026quot;name\u0026quot;: \u0026quot;Test email\u0026quot;,\n  \u0026quot;campaignId\u0026quot;: 69,\n  \u0026quot;parentId\u0026quot;: 0,\n  \u0026quot;status\u0026quot;: \u0026quot;Active\u0026quot;,\n  \u0026quot;emailId\u0026quot;: 0,\n  \u0026quot;from\u0026quot;: \u0026quot;test@example.com\u0026quot;,\n  \u0026quot;previewUrl\u0026quot;: null,\n  \u0026quot;replyTo\u0026quot;: null,\n  \u0026quot;subject\u0026quot;: \u0026quot;Test subj\u0026quot;,\n  \u0026quot;preheader\u0026quot;: null,\n  \u0026quot;body\u0026quot;: \u0026quot;... html body of the email\u0026quot;,\n  \u0026quot;css\u0026quot;: null,\n  \u0026quot;components\u0026quot;: null,\n  \u0026quot;plaintext\u0026quot;: null\n}\u003C/div\u003E\u003C/div\u003E\u003Cdiv class=\u0022api_header\u0022\u003EHTTP Response Examples\u003C/div\u003E\u003Cdiv class=\u0022code_wrapper\u0022\u003E\u003Cdiv class=\u0022d-flex header\u0022\u003E\u003Cspan class=\u0022httpstatus\u0022\u003E\u003Cspan class=\u0022solid-circle success\u0022\u003E\u003C/span\u003E200\u003C/span\u003E\u003C/div\u003E\u003Cdiv class=\u0022code\u0022 data-language=\u0022json\u0022\u003E{\r\n  \u0026quot;Status\u0026quot;: true,\r\n  \u0026quot;Message\u0026quot;: \u0026quot;\u0026quot;,\r\n  \u0026quot;Response\u0026quot;: {\r\n    \u0026quot;id\u0026quot;: 128\r\n  }\r\n}\u003C/div\u003E\u003C/div\u003E","json_meta":{"api_verb":"POST","api_path":"https://us-1.dailystory.com/api/v1/email/{id}"},"publish_status":0,"post_type":"API","featured_image_updating":false,"meta_description":"Create or update an email by setting the email id in the request. Returns a success response with the updated or newly created email id.","display_toc":true,"has_workingcopy":false,"allow_indexing":true,"sort_order":7,"total_views":0,"date_published":"2025-09-29T14:26:52.893","date_updated":"2025-09-29T14:26:53.597","date_created":"2025-09-29T14:25:18.113"}}}