application/json

Body

Request for creating drop-in bookings

  • courseId string Required

    Course ID

  • studentId string

    Single student ID (deprecated - use studentIds)

  • studentIds array[string]

    Array of student IDs

  • dropInDate string(date) Required

    Drop-in date

  • dropInTime string(time) Required

    Drop-in time

Responses

  • 200 application/json

    successful operation

    Hide response attributes Show response attributes object
    • id string Required

      Drop-in ID

    • companyId string Required

      Company ID

    • courseId string Required

      Course ID

    • studentId string Required

      Student ID

    • dropInDate string(date) Required

      Drop-in date

    • dropInTime string(time) Required

      Drop-in time

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

  • 422 application/json

    Validation error

    Hide response attributes Show response attributes object
    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

POST /v1/drop-ins/
curl \
 --request POST 'https://api-dev.classmanager.io/v1/drop-ins/' \
 --header "Content-Type: application/json" \
 --data '{"courseId":"cls_abc123","studentId":"std_def456","studentIds":["std_def456","std_ghi789"],"dropInDate":"2025-01-15","dropInTime":"10:00"}'
Request examples
{
  "courseId": "cls_abc123",
  "studentId": "std_def456",
  "studentIds": [
    "std_def456",
    "std_ghi789"
  ],
  "dropInDate": "2025-01-15",
  "dropInTime": "10:00"
}
Response examples (200)
{
  "id": "dpi_xxxxxxxx",
  "companyId": "co_xxxxxxxx",
  "courseId": "cls_xxxxxxxx",
  "studentId": "stu_xxxxxxxx",
  "dropInDate": "2023-12-05",
  "dropInTime": "23:15"
}
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}
Response examples (422)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}