POST
/api/v1/promotion/cohort
curl \
--request POST 'https://api.echoplain.social/api/v1/promotion/cohort' \
--header "Content-Type: application/json" \
--data '{"cohortId":"123e4567-e89b-12d3-a456-426614174000","toSemesterId":"789e0123-e89b-12d3-a456-426614174000"}'
Request examples
{
"cohortId": "123e4567-e89b-12d3-a456-426614174000",
"toSemesterId": "789e0123-e89b-12d3-a456-426614174000"
}
Response examples (200)
{
"message": "Cohort promoted and enrollments updated",
"success": true,
"cohortId": "123e4567-e89b-12d3-a456-426614174000",
"toSemesterId": "789e0123-e89b-12d3-a456-426614174000",
"enrolledOfferings": 5
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}