⚠️ APIv2 is legacy
APIv2 is considered legacy and is no longer recommended for new integrations.
We strongly encourage you to use APIv4 for all new integrations and to migrate existing integrations where possible.
Please refer to our latest APIv4 documentation for up-to-date information and integration guidelines:
Click here to view the APIv4 example documentation - your own documentation is at https://[your-instance].langlion.com/api/v4/docs
Get students assigned to groups - GET /api/v2/schoolClassStudents
Returns a list of the all groups (including archived) that students are assigned to. Entries are returned sorted by 'id' field in increasing order.
Request
1curl -G 'https://test.langlion.com/api/v2/schoolClassStudents' \
2--header 'Authorization: Bearer af2b3df9c671d5413fc5c38b467794782b4047705ac3...'Response
1{
2 "data": {
3 "schoolClassStudents": [
4 {
5 "id": 1098,
6 "enrolledDate": null,
7 "dischargeDate": null,
8 "assignType": 1,
9 "assignTypeName": "assigned",
10 "bookDate": null,
11 "documentSignedDate": null,
12 "documentDueDate": null,
13 "reckoningTypeName": "whole",
14 "createdAt": "2017-10-10 20:57:38",
15 "updatedAt": "2017-10-10 20:57:38",
16 "isDeleted": 0,
17 "schoolClass": {
18 "id": 126,
19 "name": "Angielski 2/2018",
20 "description": null,
21 "cost": "0.00",
22 "installmentSchemeGroupId": null,
23 "reckoningTypeName": "whole",
24 "pointSystemTypeName": "percent",
25 "startDate": "2017-10-02 00:00:00",
26 "endDate": "2018-06-25 00:00:00",
27 "minStudentLimit": 0,
28 "maxStudentLimit": 0,
29 "type": "group",
30 "schoolClassTypeName": "group",
31 "isPlanned": false,
32 "isVirtual": 0,
33 "isArchived": 1,
34 "archivedDate": "2018-07-03 14:49:49",
35 "schoolId": 1,
36 "documentTemplateId": null,
37 "createdAt": "2017-10-10 20:40:10",
38 "updatedAt": "2018-07-03 14:49:49",
39 "course": {
40 "id": 1,
41 "name": "Kurs j\u0119zykowy",
42 "lessonNumber": null,
43 "lessonLength": null,
44 "schoolId": 1,
45 "languageId": null,
46 "levelId": null,
47 "createdAt": "2013-05-06 11:39:47",
48 "updatedAt": "2014-05-12 11:43:54"
49 },
50 "language": {
51 "id": 1,
52 "name": "Angielski",
53 "type": 0,
54 "color": "DDE5F6",
55 "schoolId": 1,
56 "createdAt": "2013-05-06 11:37:00",
57 "updatedAt": "2013-05-06 11:37:00"
58 },
59 "level": {
60 "name": "A1 - Beginner",
61 "type": 0,
62 "schoolId": 1,
63 "createdAt": "2013-05-06 11:39:16",
64 "updatedAt": "2013-05-06 11:39:16"
65 }
66 },
67 "student": {
68 "id": 729,
69 "isAdult": 1,
70 "isActive": 1,
71 "createdAt": "2017-10-10 20:57:30",
72 "updatedAt": "2021-04-08 16:28:43",
73 "user": {
74 "id": 1479,
75 "login": "kowalskJ",
76 "name": "Jan",
77 "firstName": "Jan",
78 "lastName": "Kowalski",
79 "fullname": "Jan Kowalski",
80 "systemRole": "student",
81 "isArchived": 0,
82 "photo": null,
83 "language": "pl_PL",
84 "tosAccepted": 0,
85 "type": 0,
86 "typeName": "normal",
87 "createdAt": "2017-10-10 20:57:30",
88 "updatedAt": "2019-12-20 18:38:09",
89 "additionalData": {
90 "id": 750,
91 "phone": null,
92 "mobile": null,
93 "email": null,
94 "skype": null,
95 "street": null,
96 "zipCode": null,
97 "city": null,
98 "country": null,
99 "post": null,
100 "province": null,
101 "pesel": null,
102 "nipNumber": null,
103 "birthDate": null,
104 "birthPlace": null,
105 "description": null,
106 "billingName": "Jan Kowalski",
107 "billingStreet": null,
108 "billingCity": null,
109 "billingZipCode": null,
110 "billingNipNumber": null,
111 "billingPesel": null,
112 "billingEmail": null,
113 "createdAt": "2017-10-10 20:57:30",
114 "updatedAt": "2019-12-19 12:42:06"
115 },
116 "parentUser": {
117 "id": 1480,
118 "login": "kowalskJR",
119 "name": null,
120 "firstName": null,
121 "lastName": null,
122 "fullname": null,
123 "systemRole": "parent",
124 "isArchived": 1,
125 "photo": null,
126 "language": "pl_PL",
127 "tosAccepted": 0,
128 "type": null,
129 "typeName": null,
130 "createdAt": "2017-10-10 20:57:30",
131 "updatedAt": "2019-12-20 18:38:09",
132 "additionalData": {
133 "id": null,
134 "phone": null,
135 "mobile": null,
136 "email": null,
137 "skype": null,
138 "street": null,
139 "zipCode": null,
140 "city": null,
141 "country": null,
142 "post": null,
143 "province": null,
144 "pesel": null,
145 "nipNumber": null,
146 "birthDate": null,
147 "birthPlace": null,
148 "description": null,
149 "billingName": null,
150 "billingStreet": null,
151 "billingCity": null,
152 "billingZipCode": null,
153 "billingNipNumber": null,
154 "billingPesel": null,
155 "billingEmail": null,
156 "createdAt": null,
157 "updatedAt": null
158 },
159 "parentUser": null
160 }
161 }
162 }
163 },
164 [...]Parameters
Required
No required parameters.
Optional
- schoolClassId - get SchoolClassStudent for SchoolClass by schoolClassId
- studentId - get SchoolClassStudent for Student by studentId
- filter - JSON filter
- recordFrom - fetch records from
- recordTo - fetch record up to