# PATCH /courses/:course_id

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

Update a training course. Pass only the fields you want to change. Set status to published to make it sellable.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `course_id` | path | string | yes | UUID of the course to update. |
| `title` | body | string | no | Course title, as learners see it in their portal library. |
| `description` | body | string | no | Customer-facing description of the course. |
| `image_file_id` | body | string | no | UUID of a company_files image used as the course card. |
| `status` | body | string | no | draft \| published \| archived. Only published courses can be sold and played. Defaults to draft. |
| `pass_certificate` | body | boolean | no | true issues a completion certificate when the learner passes every module quiz. |
| `product_id` | body | string | no | UUID of the crm_products row that sells this course. A paid order line for it grants the buyer access. One product per course, one course per product. null unlinks. |
| `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 PATCH   "https://api.trustpager.com/functions/v1/api/v1/courses/:course_id"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"title":"...","description":"...","image_file_id":"..."}'
```

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