Query parameters
-
search
string Search by cohort name, exact match only and case insensitive
-
academicYearId
string(uuid) | string Filter cohorts by academic year ID or provide
current
for the current academic year -
limit
integer(int32) Specify the pagination limit, defaults to 100
-
offset
integer(int32) Specify the pagination offset, defaults to 0.
Cannot be used with
cursor
-
cursor
string(byte) | null Provide the next or previous page cursor
GET
/smart-ia/cohorts
curl \
--request GET 'https://connect.century.tech/api/v1/smart-ia/cohorts' \
--header "x-api-key: $API_KEY"
Response examples (200)
{
"data": [
{
"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"
}
],
"pagination": {
"limit": 30,
"total": 300,
"offset": 100,
"nextCursor": "eyJsaW1pdCI6MSxiZWZvcmU6IiIsc29ydDpbWyJlbmREYXRlIiwiZGVzYyJdXX0=",
"previousCursor": "eyJsaW1pdCI6MSxiZWZvcmU6IiIsc29ydDpbWyJlbmREYXRlIiwiZGVzYyJdXX0="
}
}