# Update Unit Offering **PATCH /api/v1/unit-offerings/{id}** Update an existing unit offering. Can modify lecturer, semester, code, outline, or other properties. Cannot update if there are conflicts. ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **id** (string) Unit offering ID ### Body: application/json (object) - **unitVersionId** (string) Update the unit version this offering is based on - **courseIntakeId** (string) Course intake ID (links to cohort intake) - **lecturerId** (string) Lecturer assigned to teach this unit offering - **semesterId** (string) Semester when this unit is offered - **Code** (string) Unique code for this unit offering (e.g., CS101-2024-1) - **personalizedOutline** (string) Customized outline for this specific offering - **studentGroupingsEnabled** (boolean) Whether to enable student groupings for collaborative work ## Responses ### 200 Unit offering updated successfully #### Body: application/json (object) - **message** (string) Response message - **offering** (object) Updated unit offering ### 400 Invalid update data ### 401 Authentication required ### 403 Admin or Lecturer privileges required ### 404 Unit offering or related entity not found ### 409 Unit offering code conflicts with existing offering [Powered by Bump.sh](https://bump.sh)