> ## Documentation Index
> Fetch the complete documentation index at: https://api.docs.dealmachine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Design

> Update a design

Update a design's name, HTML content, or metadata. Changes are saved to draft fields. Set `publish: true` to promote the draft to active.

<ParamField path="id" type="string" required>Design ID (UUID)</ParamField>
<ParamField body="name" type="string">Design name</ParamField>
<ParamField body="html_front" type="string">Updated HTML for the front side</ParamField>
<ParamField body="html_back" type="string">Updated HTML for the back side</ParamField>
<ParamField body="layout" type="string">Layout preset</ParamField>
<ParamField body="theme" type="string">Theme preset</ParamField>
<ParamField body="publish" type="boolean">Publish the current draft (copies draft HTML to published)</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://api.v2.dealmachine.com/v1/mail/designs/design-uuid-123 \
    -H "Authorization: Bearer dm_sk_live_xxx" \
    -H "Content-Type: application/json" \
    -d '{"name": "Updated Design", "publish": true}'
  ```
</RequestExample>
