v1.0.0
OpenAPI 3.1.0
Restore an email version
Client Libraries
US region
Returns the email to a saved version. This restores only the email itself; if the code for a referenced custom component changed since this version was saved, the latest component code renders in Design Studio, not the original.
This only edits the draft in Design Studio. If you already linked the email to a workflow, you need to publish it to push the restored content live.
The UUID of the email. If your email has translations, this is the ID of a specific language variant.
The UUID of the version.
curl https://api.customer.io/v1/design_studio/emails/123e4567-e89b-12d3-a456-426614174000/versions/123e4567-e89b-12d3-a456-426614174000/restore \
--request POST
{
"node_id": "123e4567-e89b-12d3-a456-426614174000",
"restored_node_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"version_id": "fc70fa5f-5fed-49c1-be48-6508aa9875c1"
}Version restored