Skip to content

Sync Email Design System

POST
/api/v1/workspaces/{workspace_id}/email_design_systems/{id}/sync

Syncs an email design system in full - sets components, container component, design tokens, custom styles etc.

workspace_id
required
integer

Workspace ID

id
required
integer

Email Design System ID

object
email_design_system
required
object
name
required
string
description
required
string
nullable
design_tokens
required
object
key
additional properties
any
Example
{
"primary_button_color": "#007bff",
"secondary_button_color": "#6c757d"
}
custom_styles
required
Array<object>
object
style
required
string
Example
background-color: yellow; font-weight: bold;
name
required
string
Example
highlight
label
required
string
Example
Highlight
container_component
required
object
name
required
string
label
required
string
description
required
string
nullable
template
required
string
field_definitions
required
Array
One of:
object
type
required
string
Allowed values: text
label
required
string
group
string
nullable
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
min_length
integer
max_length
integer
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
nullable
feed_id
required
integer
nullable
deprecated
required
boolean
components
required
Array<object>
object
name
required
string
label
required
string
description
required
string
nullable
template
required
string
field_definitions
required
Array
One of:
object
type
required
string
Allowed values: text
label
required
string
group
string
nullable
liquid_variable
required
string
visible_if
string
default_value
required
string
validations
object
min_length
integer
max_length
integer
must_not_be_blank
boolean
must_not_be_default
boolean
hint
string
hidden_in_editor
boolean
hidden_from_ai
boolean
feed_field_name
string
nullable
feed_id
required
integer
nullable
deprecated
required
boolean

Successful

object
id
required
integer
Example
12345
name
required
string
Example
My Email Design System
description
string
Example
My Email Design System
created_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z
updated_at
string format: date-time
Example
2023-08-23T10:30:00.000Z
organization_id
required
integer
Example
12345
workspace_id
required
integer
Example
12345
screenshot_url
required
string
Example
https://www.example.com/screenshot.png
upload_status
required
string
Allowed values: ready processing
Example
success
require_brand_profile_for_use
required
boolean
archived
required
boolean
design_tokens
required
object
key
additional properties
any
Example
{
"primary_button_color": "#007bff",
"secondary_button_color": "#6c757d"
}
access_scope
required
string
Allowed values: all_workspaces this_workspace_only
Example
all_workspaces
custom_styles
required
Array<object>
object
style
required
string
Example
background-color: yellow; font-weight: bold;
name
required
string
Example
highlight
label
required
string
Example
Highlight

Unauthorized

object
message
required
string
Example
Record not found

Forbidden

object
message
required
string
Example
Record not found

Not Found

object
message
required
string
Example
Record not found

Unprocessable Entity

object
message
required
string
Example
Failed to save
errors
required
object
key
additional properties
Array<string>
Example
{
"errors": {
"username": [
"Username is required.",
"Username must be unique."
],
"email": [
"Invalid email format."
]
}
}