# POST /apps/:app_id/versions/:version_id/restore

**Resource:** [Apps](./apps.md)  
**MCP tool:** `restore_app_version`  
**Scopes:** `apps:write`  
**Write operation:** yes

Bring back an earlier version of an app as its draft: that version's manifest and screen are copied into a new draft version, which goes live only through publish_app. A draft that was waiting is replaced and stays in the history. To throw away the draft and go back to the live version, use discard_app_changes instead. Workspace admins only.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `app_id` | path | string | yes | The app's id. |
| `version_id` | path | string | yes | The version to bring back: an id from list_app_versions. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/apps/:app_id/versions/:version_id/restore"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"require_approval":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`