# Create Schedule Period **POST /classes/{classId}/periods** Creates a new 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 ### Body: application/json (object) - **classId** (string) ID of the class - **date** (string(date)) Date of the period (YYYY-MM-DD) - **startTime** (string(time)) Start time (HH:mm) - **endTime** (string(time)) End time (HH:mm) - **location** (string | null) Location of the period ## Responses ### 201 Period created 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)) ### 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)