Skip to content

Reorder Components

POST
/api/v1/workspaces/{workspace_id}/email_design_systems/{emailDesignSystemId}/reorder_components
curl --request POST \
--url https://example.com/%7B%7Bapp_url%7D/api/v1/workspaces/1/email_design_systems/1/reorder_components \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "component_names": [ "hero", "footer", "cta" ] }'

Reorders the components.

  • OAuth2
    email_design_systems:write
workspace_id
required
integer

Workspace ID

emailDesignSystemId
required
integer

Email Design System ID

Media typeapplication/json
object
component_names
required

An ordered list of component names representing the desired display order.

Array<string>
Example
[
"hero",
"footer",
"cta"
]

Successful

Unauthorized

Media typeapplication/json
object
message
required
string
Example
{
"message": "Record not found"
}

Forbidden

Media typeapplication/json
object
message
required
string
Example
{
"message": "Record not found"
}