POST
/smart-ia/cohorts
curl \
--request POST 'https://connect.century.tech/api/v1/smart-ia/cohorts' \
--header "x-api-key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"cohort":{"name":"Cohort 2023","description":"This cohort is for students graduating in 2023","academicYearId":"dccd109a-08ca-4a18-a277-4653ba726316","tests":[{"testId":"c5a77fda-7174-446f-a4f5-0f47ccbf15ce","active":true}]}}'
Request examples
{
"cohort": {
"name": "Cohort 2023",
"description": "This cohort is for students graduating in 2023",
"academicYearId": "dccd109a-08ca-4a18-a277-4653ba726316",
"tests": [
{
"testId": "c5a77fda-7174-446f-a4f5-0f47ccbf15ce",
"active": true
}
]
}
}
Response examples (201)
{
"class": {
"name": "Cohort 2023",
"tests": [
{
"name": "English Initial Test",
"testId": "c5a77fda-7174-446f-a4f5-0f47ccbf15ce",
"subject": "English",
"testVersionId": "38444333-7450-49d5-922d-eb16a8f30589",
"activationStatus": "active"
}
],
"cohortId": "c334f818-0281-4f47-855a-3a3d0e356cfd",
"description": "This cohort is for students graduating in 2023",
"academicYearId": "dccd109a-08ca-4a18-a277-4653ba726316"
}
}