GET v3/users/{userIdentifier}/SelfRebooking/availableclasses?fromClassId={fromClassId}&classType={classType}

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

NameDescriptionTypeAdditional information
userIdentifier

PearsonEnglish.LearningServices.Business.Helpers.UserIdentifier

Required

fromClassId

globally unique identifier

Required

classType

PearsonEnglish.LearningServices.Core.Models.Enums.ClassTypes

Required

Body Parameters

None.

Response Information

Resource Description

Collection of PearsonEnglish.LearningServices.Wse.Models.AvailableClassDetails
NameDescriptionTypeAdditional information
UnitNumber

integer

None.

Categories

string

None.

Description

string

None.

NoOfSeatsAvailable

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,
    "Id": "aa91dee2-22d0-4426-a6fa-eb5a8f48df19",
    "DateTime": "2024-12-20T14:34:37.2401133+00:00",
    "EndDate": "2024-12-20T14:34:37.2401133+00:00",
    "Duration": 7,
    "Status": "Available",
    "IsOnline": true,
    "CenterId": "80d85d0b-34e5-44d4-a07f-b6bab87c21ea",
    "CenterName": "sample string 10",
    "CenterReferenceId": "sample string 11"
  },
  {
    "UnitNumber": 1,
    "Categories": "sample string 1",
    "Description": "sample string 2",
    "NoOfSeatsAvailable": 3,
    "Id": "aa91dee2-22d0-4426-a6fa-eb5a8f48df19",
    "DateTime": "2024-12-20T14:34:37.2401133+00:00",
    "EndDate": "2024-12-20T14:34:37.2401133+00:00",
    "Duration": 7,
    "Status": "Available",
    "IsOnline": true,
    "CenterId": "80d85d0b-34e5-44d4-a07f-b6bab87c21ea",
    "CenterName": "sample string 10",
    "CenterReferenceId": "sample string 11"
  }
]