# Restore a version snapshot (non-destructive).

`POST /api/plugins/docs/documents/{id}/versions/{versionId}/restore`

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (path, string, required)
  Type: string

- `versionId` (path, string, required)
  Type: string

Responses:

- 200: Version restored successfully.

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/plugins/docs/documents/string/versions/string/restore'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/plugins/docs/documents/string/versions/string/restore', {
  method: 'POST',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.post('http://localhost:3000/api/plugins/docs/documents/string/versions/string/restore')
print(response.text)
```
