GET v2/users/{userIdentifier}/SelfBooking/availableclasses
Authorization
Access to this endpoint is granted if all following conditions are true:
- Authenticated user passes at least one of the following conditions: Authenticated user matches identifier given in "userIdentifier, studentIdentifier" uri parameter. Authenticated user is a staff member and is assigned to the same center as a user who matches identifier given in "userIdentifier, studentIdentifier" uri parameter.
- Authenticated user who is either StaffMember, Student
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userIdentifier | PearsonEnglish.LearningServices.Business.Helpers.UserIdentifier |
Required |
|
ClassType | PearsonEnglish.LearningServices.Core.Models.Enums.ClassTypes |
None. |
|
CenterTypes | Collection of PearsonEnglish.LearningServices.Core.Models.Enums.CenterType |
None. |
|
TimeSlots | Collection of string |
None. |
|
TimeZoneOffset | time interval |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of PearsonEnglish.LearningServices.Wse.Models.AvailableClassDetailsName | Description | Type | Additional information |
---|---|---|---|
UnitNumber | integer |
None. |
|
Categories | string |
None. |
|
Description | string |
None. |
|
NoOfSeatsAvailable | integer |
None. |
|
NumberOfSeats | integer |
None. |
|
Id | globally unique identifier |
None. |
|
DateTime | date |
None. |
|
EndDate | date |
None. |
|
Duration | integer |
None. |
|
Status | PearsonEnglish.LearningServices.Wse.Models.AvailableClassStatus |
None. |
|
IsOnline | boolean |
None. |
|
CenterId | globally unique identifier |
None. |
|
CenterName | string |
None. |
|
CenterReferenceId | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "UnitNumber": 1, "Categories": "sample string 1", "Description": "sample string 2", "NoOfSeatsAvailable": 3, "NumberOfSeats": 4, "Id": "6b553582-e893-4e74-af15-99d136cc0007", "DateTime": "2025-03-28T18:29:29.2815645+00:00", "EndDate": "2025-03-28T18:29:29.2815645+00:00", "Duration": 8, "Status": "Available", "IsOnline": true, "CenterId": "5b3f76c9-7720-420b-ace4-303f6b016846", "CenterName": "sample string 11", "CenterReferenceId": "sample string 12" }, { "UnitNumber": 1, "Categories": "sample string 1", "Description": "sample string 2", "NoOfSeatsAvailable": 3, "NumberOfSeats": 4, "Id": "6b553582-e893-4e74-af15-99d136cc0007", "DateTime": "2025-03-28T18:29:29.2815645+00:00", "EndDate": "2025-03-28T18:29:29.2815645+00:00", "Duration": 8, "Status": "Available", "IsOnline": true, "CenterId": "5b3f76c9-7720-420b-ace4-303f6b016846", "CenterName": "sample string 11", "CenterReferenceId": "sample string 12" } ]