# Submit assignment (student) **POST /api/v1/assignment/{id}/submit** Creates an assignment submission. If responseText is provided, AI analysis is performed and an auto-score may be awarded when the authenticity score is below the admin-set threshold. File-only submissions are stored but not analyzed. ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **id** (string) UUID of the assignment to submit ### Body: application/json (object) Submission data including text response or file URL - **responseText** (string) Text answer or code submission (will be analyzed by AI) - **fileUrl** (string) URL of uploaded file submission ## Responses ### 201 Assignment submitted successfully (may include AI analysis and auto-score) ### 400 Invalid submission data or deadline passed ### 404 Assignment not found [Powered by Bump.sh](https://bump.sh)