Creates a new CAT for a specific unit. Only admins and lecturers can create CATs.
POST
/api/v1/cats/{unit}
curl \
--request POST 'https://api.echoplain.social/api/v1/cats/123e4567-e89b-12d3-a456-426614174000' \
--header "Content-Type: application/json" \
--data '{"title":"string","releaseDate":"2025-05-04T09:42:00Z","dueDate":"2025-05-04T09:42:00Z","durationMinutes":42.0,"score":42.0,"status":"DRAFT","maxAttempts":1}'
Request examples
{
"title": "string",
"releaseDate": "2025-05-04T09:42:00Z",
"dueDate": "2025-05-04T09:42:00Z",
"durationMinutes": 42.0,
"score": 42.0,
"status": "DRAFT",
"maxAttempts": 1
}
Response examples (201)
{
"cat": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"marks": 30,
"title": "Midterm CAT 1",
"status": "DRAFT",
"dueDate": "2025-10-15T11:00:00.000Z",
"description": "First continuous assessment test covering topics 1-3",
"releaseDate": "2025-10-15T09:00:00.000Z"
},
"message": "CAT created successfully"
}