# POST /courses/:course_id/entitlements/:entitlement_id/revoke

**Resource:** [COURSES](./courses.md)  
**MCP tool:** `revoke_course_access`  
**Scopes:** `courses:write`  
**Write operation:** yes

End one learner access to a training course (soft end, recorded in the audit trail). The grant row and the learner progress are kept. Repeating it is harmless.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `course_id` | path | string | yes |  |
| `entitlement_id` | path | string | yes |  |
| `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/courses/:course_id/entitlements/:entitlement_id/revoke"   -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`