Easymailing
Brand settings

Update a brand style

PUT /design_settings/{uuid}

PUT/design_settings/{uuid}

Changes a brand style. Send only the fields you want to change; the rest keeps its value. custom_fonts, color_palette and social_links, when sent, replace the whole current list.

When to use: To change the colors, fonts, buttons or social links of an existing style, or to mark it as the default one.

When not to use: To start a new style use create_design_setting.

Permissions: Requires the author role or higher, or the marketing.templates.write capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the brand style. Get it with list_design_settings.

Request Body

The updated DesignSetting resource

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/design_settings/e1b84c07-9a35-4d2f-b6c8-3f7d0a5e9b21" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "title": "string",    "color_palette": [      {        "title": "string",        "color": "string"      }    ],    "button": {      "styles": {        "background_color": "string",        "color": "string",        "font_family": "string",        "font_weight": "string",        "font_size": "string",        "border_radius": "string",        "padding": "string"      }    },    "email_width": 400,    "page_width": 800,    "social_links": [      {        "key": "facebook",        "title": "string",        "url": "http://example.com"      }    ],    "custom_fonts": [      {        "name": "string",        "font_family": "string",        "url": "http://example.com",        "font_weight": {},        "active": true      }    ],    "titles": {      "h1": {        "color": "string",        "font_family": "string",        "font_size": "string",        "font_weight": "string",        "link_color": "string"      },      "h2": {        "color": "string",        "font_family": "string",        "font_size": "string",        "font_weight": "string",        "link_color": "string"      },      "h3": {        "color": "string",        "font_family": "string",        "font_size": "string",        "font_weight": "string",        "link_color": "string"      }    },    "texts": {      "list": {        "styles": {          "color": "string",          "font_family": "string",          "font_size": "string",          "font_weight": "string",          "link_color": "string",          "line_height": "string"        }      },      "paragraph": {        "styles": {          "color": "string",          "font_family": "string",          "font_size": "string",          "font_weight": "string",          "link_color": "string",          "line_height": "string"        }      }    },    "default": true  }'
{  "id": 0,  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "title": "string",  "color_palette": [    {      "title": "string",      "color": "string"    }  ],  "button": {    "styles": {      "background_color": "string",      "color": "string",      "font_family": "string",      "font_weight": "string",      "font_size": "string",      "border_radius": "string",      "padding": "string"    }  },  "email_width": 400,  "page_width": 800,  "social_links": [    {      "key": "facebook",      "title": "string",      "url": "http://example.com",      "icon_url": "http://example.com",      "icon_url_white": "http://example.com"    }  ],  "default_fonts": [    {      "name": "string",      "font_family": "string",      "url": "http://example.com",      "font_weight": {},      "active": true    }  ],  "custom_fonts": [    {      "name": "string",      "font_family": "string",      "url": "http://example.com",      "font_weight": {},      "active": true    }  ],  "titles": {    "h1": {      "color": "string",      "font_family": "string",      "font_size": "string",      "font_weight": "string",      "link_color": "string"    },    "h2": {      "color": "string",      "font_family": "string",      "font_size": "string",      "font_weight": "string",      "link_color": "string"    },    "h3": {      "color": "string",      "font_family": "string",      "font_size": "string",      "font_weight": "string",      "link_color": "string"    }  },  "texts": {    "list": {      "styles": {        "color": "string",        "font_family": "string",        "font_size": "string",        "font_weight": "string",        "link_color": "string",        "line_height": "string"      }    },    "paragraph": {      "styles": {        "color": "string",        "font_family": "string",        "font_size": "string",        "font_weight": "string",        "link_color": "string",        "line_height": "string"      }    }  },  "logo_light_url": "http://example.com",  "logo_dark_url": "http://example.com",  "default": true,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}