---
search:
  tags:
    - Modules
    - PATCH
seo:
  description: >-
    Partial update of module fields (name, code). Returns the updated module
    without nested… Reference for the PATCH /modules/{id} endpoint in the Fuxam
    API v4.
sidebar:
  label: Update a module
  badge: PATCH
title: Update a module
type: openapi-operation
---
Partial update of module fields (`name`, `code`). Returns the updated module without nested versions. Use GET /modules/&#123;id&#125; for full detail. Scoped to your integration's institution via Basic Auth credentials.

`PATCH /modules/{id}`

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

- `name` (string)
- `code` (string)

Request body example:

```json
{
  "name": "Introduction to Economics",
  "code": "ECON-101"
}
```

**Responses**

- `200` — Updated module
- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `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": "cm_xyz789",
    "name": "Economics",
    "institutionId": "inst_123",
    "code": "ECO-101",
    "isArchived": false,
    "nameTranslations": null,
    "isSubmodule": false
  },
  "meta": {
    "requestId": "req_abc123",
    "timestamp": "2026-06-26T00:00:00.000Z",
    "version": "v4"
  }
}
```
