ListClasses
GET /tp-api/classes
Find in-person or virtual instructor-led classes.
Query Parameters
- cursor string
Cursor to return items after a specific position in the list.
- limit integer
Possible values:
>= 1
and<= 100
Default value:
10
Maximum number of items to return.
- skip integer
Query to retrieve the items starting from that position in the dataset.
- ids string[]
Filter classes by an array of class ids.
- courseDeliveryMethod any
Filter classes by course delivery method.
OFFLINE
orVIRTUAL
. - courseIds string[]
Filter classes by course ids.
- start date-time
Filter classes who's start date is after the given date-time
- end date-time
Filter classes who's end date is before the given date-time
Header Parameters
- training-provider-id string required
- 200
- 400
Default Response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- id string required
Class id
address object
Class Location. This is required for in-person classes
countryCode stringPossible values:
>= 2 characters
and<= 2 characters
2 letter country code
district stringDistrict name
extendedAddress stringAddress line 2
locality stringCity
name stringLocation name or Site name
postalCode stringPostal code
postOfficeBox stringPost office box
region stringProvince/State
streetAddress stringAddress line 1
contact object required
email email requiredMain contact email address
fax object required
- anyOf
- MOD1
stringMain contact fax number
telephone object required
- anyOf
- MOD1
stringMain contact phone number
course object required
id string requiredCourse id
name string requiredCourse name
- created date-time required
Class creation time
deliveryMethod object required
Course delivery method
- anyOf
- MOD1
- MOD2
stringPossible values: [
OFFLINE
]stringPossible values: [
VIRTUAL
]- anyOf
evaluators object[] required
List of class evaluators
Array [id string requiredEvaluator user id
firstname string requiredEvaluator firstname
lastname string requiredEvaluator lastname
]- externalRegistrationUrl string required
Class external registration URL
instructors object[] required
List of class instructors
Array [id string requiredInstructor user id
firstname string requiredInstructor firstname
lastname string requiredInstructor lastname
]- price number required
Class price
- publishInMarketplace boolean required
Should the class appear in the marketplace
schedule object[] required
Array [id string requiredEvent id
start date-time requiredClass start time
end date-time requiredClass end time
]seatsInventory object required
totalSeats number requiredTotal class seats
booked number requiredBooked class seats
remaining number requiredRemaining class seats
- showPriceInMarketplace boolean required
Should this class's price appear in the marketplace
specialInstructions object required
- anyOf
- MOD1
stringClass special instructions
- anyOf
- timezone string required
Class timezone in the form area/location
- virtualClassUrl uri
Virtual class url. This field is required for virtual classes
- ]
[
{
"id": "string",
"address": {
"countryCode": "string",
"district": "string",
"extendedAddress": "string",
"locality": "string",
"name": "string",
"postalCode": "string",
"postOfficeBox": "string",
"region": "string",
"streetAddress": "string"
},
"contact": {
"email": "user@example.com",
"fax": "string",
"telephone": "string"
},
"course": {
"id": "string",
"name": "string"
},
"created": "2024-10-23T16:51:09.171Z",
"deliveryMethod": "OFFLINE",
"evaluators": [
{
"id": "string",
"firstname": "string",
"lastname": "string"
}
],
"externalRegistrationUrl": "string",
"instructors": [
{
"id": "string",
"firstname": "string",
"lastname": "string"
}
],
"price": 0,
"publishInMarketplace": true,
"schedule": [
{
"id": "string",
"start": "2024-10-23T16:51:09.171Z",
"end": "2024-10-23T16:51:09.171Z"
}
],
"seatsInventory": {
"totalSeats": 0,
"booked": 0,
"remaining": 0
},
"showPriceInMarketplace": true,
"specialInstructions": "string",
"timezone": "America/Winnipeg",
"virtualClassUrl": "string"
}
]
Default Response
- application/json
- Schema
- Example (from schema)
Schema
- anyOf
- MOD1
- MOD2
statusCode number requiredcode stringError code
error string requiredError key
message string requiredError message
error object required
key string requiredError key
message string requiredError message
{
"statusCode": 0,
"code": "string",
"error": "string",
"message": "string"
}