# POST /quizzes/:quiz_id/categories

**Resource:** [QUIZZES](./quizzes.md)  
**MCP tool:** `create_quiz_category`  
**Scopes:** `quizzes:write`  
**Write operation:** yes

Add a category to a scorecard (e.g. "Online presence"): each question can count towards one, and everyone gets a score out of 100 for each category as well as overall.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `quiz_id` | path | string | yes | The quiz (list_quizzes). |
| `name` | body | string | yes | The category, e.g. "Online presence". Required when adding. |
| `colour` | body | string | no | Its colour on charts, #rrggbb. Send null to clear. |
| `position` | body | number | no | Its place in the list (0 first). |
| `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/quizzes/:quiz_id/categories"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"name":"...","colour":"...","position":"..."}'
```

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