> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Restore Campaign Variation

> Bring back a discarded variation

Brings back a discarded variation with its label, and moves its branches back under it. Restoring a variation that is not discarded returns it unchanged.

## Request

<ParamField path="campaignId" type="string" required>
  Campaign ID. Email campaigns only.
</ParamField>

<ParamField path="variationId" type="string" required>
  Variation ID.
</ParamField>

```bash theme={null}
curl -X POST "https://api.sequenzy.com/api/v1/campaigns/camp_abc123/variations/var_9xk2/restore" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "variation": {
      "id": "var_9xk2",
      "emailId": "email_abc123",
      "parentId": null,
      "label": "V2",
      "name": "Warm and personal",
      "summary": "Rewrote the opening in a friendlier voice and shortened the body.",
      "prompt": "Three warmer, shorter versions",
      "style": "fresh",
      "status": "ready",
      "error": null,
      "subject": "A quick note about our pricing",
      "previewText": null,
      "blocks": [
        { "id": "h1", "type": "heading", "content": "A quick note about pricing", "level": 1 }
      ],
      "emailTheme": null,
      "fontFamily": null,
      "position": null,
      "inUse": false,
      "usedAt": null,
      "createdAt": "2026-10-14T09:12:00.000Z",
      "updatedAt": "2026-10-14T09:12:41.000Z"
    }
  }
  ```

  ```json 401 theme={null}
  {
    "error": "Invalid API key"
  }
  ```

  ```json 404 theme={null}
  {
    "error": "Variation not found"
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.