host

Returns a session detail

Changed on
get/api/v2/host/sessions/{sessionId}

Request

  • Base URL
    https://api.momence.com
  • Auth
    OAuth 2
    Authorization code/api/v2/auth/authorize
    Password
    Token URL/api/v2/auth/token

Path parameters

sessionIdnumber required

Response

idinteger required
namestring required
semesterIdinteger nullable required

Id of the semester this class belongs to, or null when it does not belong to one. A semester itself reports null here - its own id is in id. Resolve it with GET /api/v2/host/semesters.

startsAtstring date-time required
endsAtstring date-time required
capacityinteger nullable required
bookingCountinteger nullable required
waitlistCapacityinteger nullable required
waitlistBookingCountinteger nullable required
isRecurringboolean required
isCancelledboolean required
isInPersonboolean required
isDraftboolean required
zoomLinkstring nullable required
zoomMeetingIdstring nullable required
zoomMeetingPasswordstring nullable required
onlineStreamUrlstring nullable required
onlineStreamPasswordstring nullable required

Example response

{
  "id": 1,
  "name": "Monday Morning Yoga",
  "semesterId": 42,
  "startsAt": "2021-01-01T00:00:00Z",
  "endsAt": "2021-01-01T01:00:00Z",
  "capacity": 20,
  "bookingCount": 12,
  "waitlistCapacity": 20,
  "waitlistBookingCount": 20,
  "teacher": {
    "id": 1,
    "firstName": "John",
    "lastName": "Doe",
    "pictureUrl": "https://example.com/picture.jpg",
    "email": "johndoe@teacher.com"
  },
  "originalTeacher": {
    "id": 1,
    "firstName": "John",
    "lastName": "Doe",
    "pictureUrl": "https://example.com/picture.jpg",
    "email": "johndoe@teacher.com"
  },
  "additionalTeachers": [
    {
      "id": 1,
      "firstName": "John",
      "lastName": "Doe",
      "pictureUrl": "https://example.com/picture.jpg",
      "email": "johndoe@teacher.com"
    }
  ],
  "inPersonLocation": {
    "id": 1,
    "name": "Main Studio"
  },
  "zoomLink": "https://zoom.us/j/1234567890",
  "zoomMeetingId": "1234567890",
  "zoomMeetingPassword": "065809",
  "onlineStreamUrl": "https://example.com/online-stream",
  "onlineStreamPassword": "password123",
  "tags": [
    {
      "id": 1,
      "name": "VIP",
      "badgeLabel": "VIP",
      "badgeColor": "#fe0000"
    }
  ]
}

Changes