# POST /apps/:app_id/discard

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

Throw away an app's unpublished changes and go back to its live version. The draft stays in the version history as "discarded", so restore_app_version can bring it back. Nothing changes for the people the app is shared with. Refused when the app has never been live. Workspace admins only.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `app_id` | path | string | yes | The app's id. |
| `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/discard"   -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`