# Update Lesson **PATCH /lessons/{id}** Updates an existing lesson with the provided information. ## Servers - Local development server: http://localhost:8080/api (Local development server) - Production server: https://api.huy-devops.site/api (Production server) ## Authentication methods - Bearer auth ## Parameters ### Path parameters - **id** (string) The lesson ID ### Body: application/json (object) - **title** (string | null) Title of the lesson - **content** (string | null) Lesson content or instructions - **subject** (string | null) Subject code - **type** (string | null) Type of lesson - **status** (string | null) Status of the lesson - **learningObjectives** (array[object] | null) Learning objectives - **lessonPlan** (string | null) Private teacher notes/plan - **maxPoints** (integer | null) Maximum points for assignments - **dueDate** (string(date-time) | null) Due date for assignments ## Responses ### 200 Lesson updated successfully #### Body: application/json (object) - **success** (boolean) - **code** (integer(int32)) - **message** (string) - **data** (object) Lesson plan object representing a detailed plan for teaching or assignment ### 400 Bad Request - Invalid input data #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) ### 404 Lesson not found #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) ### 500 Internal Server Error #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) [Powered by Bump.sh](https://bump.sh)