# Update **PUT /v1/trials/{id}** Update Trial ## Servers - Development Server: https://api-dev.classmanager.io (Development Server) - Localhost: https://localhost (Localhost) - Local (Valet): https://classmanager.test (Local (Valet)) - Staging Server: https://api-stage.classmanager.io (Staging Server) - Production Server: https://api.classmanager.io (Production Server) ## Parameters ### Path parameters - **id** (string) Trial id ### Body: application/json (object) Request for updating an existing trial - **classId** (string) Class - **trialAt** (string(date)) Date of trial - **time** (string(time)) Time of trial ## Responses ### 200 successful operation #### Body: application/json (object) - **id** (string) id - **companyId** (string) Company ID - **classId** (string) Class ID - **studentId** (string) Student ID - **trialAt** (string(date)) Date of trial - **time** (string(time)) Time of trial - **archivedAt** (string(date-time) | null) Archived at ### 403 Not authorized #### Body: application/json (object) - **statusCode** (number) Status Code - **messages** (array[string]) List of error messages - **exception** (object) Exception ### 404 Not found #### Body: application/json (object) - **statusCode** (number) Status Code - **messages** (array[string]) List of error messages - **exception** (object) Exception [Powered by Bump.sh](https://bump.sh)