# Update chat details (name or status) **PUT /chat/{chatId}** ## Servers - Local development server: http://localhost:3000/api/v1 (Local development server) - Production server: https://referspecs-backend.onrender.com/api/v1 (Production server) ## Authentication methods - Bearer auth ## Parameters ### Path parameters - **chatId** (string) The CUID of the chat to update ### Body: application/json (object) - **chatName** (string) The new name for the chat session - **status** (string) The new status for the chat session ## Responses ### 200 Chat updated successfully #### Body: application/json (object) - **success** (boolean) - **statusCode** (integer) - **message** (string) - **data** (object) ### 400 Bad Request (e.g., invalid status, no fields provided) #### Body: application/json (object) - **success** (boolean) - **statusCode** (integer) - **message** (string) ### 401 Unauthorized #### Body: application/json (object) - **success** (boolean) - **statusCode** (integer) - **message** (string) ### 404 Chat not found or user does not have permission #### Body: application/json (object) - **success** (boolean) - **statusCode** (integer) - **message** (string) ### 500 Internal Server Error #### Body: application/json (object) - **success** (boolean) - **statusCode** (integer) - **message** (string) [Powered by Bump.sh](https://bump.sh)