# Create a new assignment **POST /api/v1/unit-instance/{unit}/new-assignment** Create a new assignment for students to complete. Only admins and lecturers can create assignments. ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **unit** (string) UUID of the unit instance (unit offering) ### Body: application/json (object) Assignment data including title, description, marks, dates, and max attempts - **title** (string) - **description** (string) - **marks** (number) - **status** (string) - **releaseDate** (string(date-time)) - **dueDate** (string(date-time)) - **maxAttempts** (number) ## Responses ### 201 Assignment created successfully ### 400 Invalid assignment data ### 403 Forbidden - Admin or Lecturer role required [Powered by Bump.sh](https://bump.sh)