> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Restore a version of an email into its draft

POST`/workspace/{orgId}/email/templates/{id}/versions/{version}/restore`

Copies a published version back into the draft ({"revision"}), without publishing it; the email then has unpublished changes until it is published again. Owners and admins.

## Path Parameters

`orgId`

numberrequired

`id`

numberrequired

`version`

numberrequired

## Response

200

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/workspace/{orgId}/email/templates/{id}/versions/{version}/restore'
```

**JavaScript**

```javascript
const options = {
  method: 'POST'
};

fetch('https://api.workover.io/workspace/{orgId}/email/templates/{id}/versions/{version}/restore', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/workspace/{orgId}/email/templates/{id}/versions/{version}/restore"

response = requests.post(url)

print(response.text)
```
