QuickSense API
  • Introduction
  • Authentication
  • Errors
  • Core Resources
    • Enrolments
      • The enrolment object
      • Create a user and add into a course
      • Create a user and add into a classroom
      • Remove user from a course
      • Remove user from a classroom
    • Users
      • The user object
      • Retrieve a user
      • Update a user
      • Delete a user
      • List all users
    • Courses/Classrooms
      • The courses object
      • List all clasrooms/courses
Powered by GitBook
On this page
  • New user classroom enrollment
  • Existing user classroom enrollment

Was this helpful?

  1. Core Resources
  2. Enrolments

Create a user and add into a classroom

To sign up a user for a particular classroom ID, simply send a request with the following body parameters varying on whether it is an existing user or a new one.

New user classroom enrollment

POST https://api.cakes.com/api/v2/public/enrol/classroom

This endpoint allows you to get free cakes.

Headers

Name
Type
Description

ApiKey

string

School's API Key

Request Body

Name
Type
Description

FirstName

string

User's first name

LastName

string

User's last name

Email

string

User's email address

Classroom

string

ID of classroom to enroll into

{
    firstName: string,
    lastName: string,
    email: string,
    lastlogin: DateTime,
    passwordResetTicketUrl: string,
    classroom: {
        courseId: string,
        courseName: string,
        classId: string,
        className: string
    }
}
{
    status: 401,
    userMessage: "This API key is invalid."
}

Existing user classroom enrollment

POST /api/v2/public/enrol/classroom

Headers

Name
Type
Description

ApiKey

string

School's API Key

Request Body

Name
Type
Description

Email

string

User's email address

Classroom

string

Classroom ID to enroll into

{
    firstName: string,
    lastName: string,
    email: string,
    lastlogin: DateTime,
    passwordResetTicketUrl: string,
    classroom: {
        courseId: string,
        courseName: string,
        classId: string,
        className: string
    }
}
PreviousCreate a user and add into a courseNextRemove user from a course

Last updated 4 years ago

Was this helpful?