---
title: "Gets upcoming classes for the subscriber"
method: GET
path: "/Business/Schedules/Classes/Upcoming"
tags: ["Rest"]
---

# Gets upcoming classes for the subscriber

`GET /Business/Schedules/Classes/Upcoming`

## Query parameters

- `startDateTime` string, date-time
- `endDateTime` string, date-time
- `locationId` integer

## Headers

- `Authorization` string, required
- `SiteId` integer, required

## Response `200`

OK

- MindbodyRestApiDtoModelsSiteSchedulesClassSchedule[]
  - `MaxCapacity` integer — Maximum capacity of Class
  - `NumRegistered` integer — Number of candidates enrolled in the class
  - `ProgramId` integer — Program Id
  - `ResourceId` integer — Resource Id
  - `ResourceName` string — Resource Name
  - `ClassScheduleId` integer — Class Schedule Id
  - `ClassDescription` MindbodyRestApiDtoModelsSiteSchedulesClassDetails — Class Description Details
    - `Id` integer — Class Id
    - `ClassDetailsId` integer — Class Details Id
    - `ClassName` string — Class Name
  - `Staff` MindbodyRestApiDtoModelsSiteSchedulesStaffDetails — Staff Details
    - `Id` integer — Trainer Id of the Class
    - `Name` string — Trainer Name
  - `Location` MindbodyRestApiDtoModelsSiteSchedulesLocationDetails — Location Details
    - `Id` integer — Location Id
    - `Name` string — Location Name
  - `Start` string, date-time — Start Time of the Class
  - `Type` string — Type of class
  - `TimeZoneId` string — Specifies the time zone of the subscriber

## Other responses

- `204` — NoContent
- `400` — BadRequest

---

[API](https://skmtc.net/mindbodyonline/apis/rest-api.md) · [All operations](https://skmtc.net/mindbodyonline/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mindbodyonline/rest-api/revisions/dc2736850e42/schema)
