# Update Schedule Period **PATCH /classes/{classId}/periods/{id}** Updates an existing schedule period for a class. ## 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 - **classId** (string) The class ID - **id** (string) The period ID ### Body: application/json (object) - **id** (string) ID of the period to update - **classId** (string | null) ID of the class - **date** (string(date) | null) Date of the period - **startTime** (string(time) | null) Start time - **endTime** (string(time) | null) End time - **location** (string | null) Location of the period ## Responses ### 200 Period updated successfully #### Body: application/json (object) - **success** (boolean) - **code** (integer(int32)) - **message** (string) - **data** (object) Schedule period representing a scheduled event or class period on a specific date (non-recurring) ### 400 Bad Request - Invalid input data #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) ### 404 Period 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)