POST
/api/v1/cohorts/new
curl \
--request POST 'http://localhost:3500/api/v1/cohorts/new' \
--header "Content-Type: application/json" \
--data '{"name":"string","departmentId":"string","currentSemesterId":"string","courseId":"string"}'
Request examples
{
"name": "string",
"departmentId": "string",
"currentSemesterId": "string",
"courseId": "string"
}
Response examples (200)
{
"message": "string",
"id": "string",
"departmentId": "string"
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}