# Save Seating Chart **PUT /classes/{classId}/seating-chart** Saves or updates the seating chart layout for a specific 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) - **rows** (integer) Number of rows in the classroom layout - **columns** (integer) Number of columns in the classroom layout - **seats** (array[object]) Array of seats in the layout - **separatorInterval** (integer | null) Interval for separators in the layout ## Responses ### 200 Seating chart saved successfully #### Body: application/json (object) - **success** (boolean) - **code** (integer(int32)) - **message** (string) - **data** (object) Seating chart layout object representing classroom arrangement ### 400 Bad Request - Invalid layout data #### Body: application/json (object) - **success** (boolean) - **code** (integer) - **errorCode** (string) - **message** (string) - **timestamp** (string(date-time)) ### 404 Class 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)