--- name: code-routes description: Handle 5 OpenAPI operation(s) under /api/v1/code for the code route group. --- # code API Routes Handle 5 OpenAPI operation(s) under /api/v1/code for the code route group. Use the generated operation tools to make real API calls. Do not invent API responses. If a tool reports missing setup, return the exact setup field name to the caller. For write, update, or delete operations, state the intended action before calling the tool. ## Operations ### execute_code_api_v1_code_execute_post - Operation ID: `execute_code_api_v1_code_execute_post` - Route: `POST /api/v1/code/execute` - Mode: WRITE - Summary: Execute a code snippet - Body: JSON request body accepted. ### execute_batch_api_v1_code_execute_batch_post - Operation ID: `execute_batch_api_v1_code_execute_batch_post` - Route: `POST /api/v1/code/execute-batch` - Mode: WRITE - Summary: Execute code against a batch of test cases - Body: JSON request body accepted. ### upload_sqlite_db_api_v1_code_upload_sqlite_post - Operation ID: `upload_sqlite_db_api_v1_code_upload_sqlite_post` - Route: `POST /api/v1/code/upload-sqlite` - Mode: WRITE - Summary: Upload a SQLite database for a code playground block - Body: JSON request body accepted. ### get_submission_history_api_v1_code_submissions_history_get - Operation ID: `get_submission_history_api_v1_code_submissions_history_get` - Route: `GET /api/v1/code/submissions/history` - Mode: READ - Summary: List a user's code submission history - Parameters: - `activity_uuid` in `query` required - `block_id` in `query` required - `page` in `query` - `limit` in `query` ### save_submission_api_v1_code_submissions_save_post - Operation ID: `save_submission_api_v1_code_submissions_save_post` - Route: `POST /api/v1/code/submissions/save` - Mode: WRITE - Summary: Save a code submission - Body: JSON request body accepted.