v1.0.0
OpenAPI 3.1.0

Restore an email version

US region

Client Libraries

Restore an email version

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.

Path Parameters
  • id
    Type: string Format: uuid
    required

    The UUID of the email. If your email has translations, this is the ID of a specific language variant.

  • version_id
    Type: string Format: uuid
    required

    The UUID of the version.

Responses
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/v1/design_studio/emails/{id}/versions/{version_id}/restore
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"
}