---
deprecated: true
search:
  tags:
    - Module groups
    - PATCH
seo:
  description: >-
    Partial update of a module group. Optionally pass moduleIds to attach
    modules… Reference for the PATCH /module-groups/{id} endpoint in the Fuxam
    API v4.
sidebar:
  label: Update a module group
  badge: PATCH
title: Update a module group
type: openapi-operation
---
Partial update of a module group. Optionally pass `moduleIds` to attach modules (default versions). Returns the updated group (same shape as GET). When Module Hierarchy is enabled, writes return 409 Conflict. Successful responses include Deprecation: true and a Link successor-version header to /api/v4/openapi. Scoped to your integration's institution via Basic Auth credentials.

`PATCH /module-groups/{id}`

**Deprecated.**

**Request body** (`application/json`, required)

- `name` (string)
- `code` (string)
- `description` (string)
- `color` (string)
- `icon` (string)
- `moduleIds` (string[]) — Optional module IDs to attach (resolved to default versions).

Request body example:

```json
{
  "name": "Core Modules",
  "code": "CORE",
  "description": "Foundational courses for all programs.",
  "color": "#4A90D9"
}
```

**Responses**

- `200` — Updated module group
- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict — duplicate email or membership code (body includes \`existingUserId\` when known), a time-tracking session that is already running (\`activeSession\`), a time-tracking interval that overlaps an existing log (\`conflictingLog\`), idempotency key reused with a different body (\`idempotency\_key\_reused\`), or concurrent request with the same key still in progress (\`idempotency\_key\_in\_progress\`)
- `429` — Too Many Requests — 1000 requests per minute per institution. Includes \`X-RateLimit-Limit\`, \`X-RateLimit-Remaining\`, \`X-RateLimit-Reset\` (ISO-8601), and \`Retry-After\` (seconds).
- `500` — Internal Server Error

Response example, 200:

```json
{
  "data": {
    "id": "mg_001",
    "name": "Core Modules",
    "code": "CORE",
    "description": "Mandatory core modules for all students.",
    "color": "#0361fc",
    "icon": "layers",
    "institutionId": "inst_123",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedAt": "2026-06-01T00:00:00.000Z"
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-06-26T00:00:00.000Z",
    "version": "v4"
  }
}
```
