Skip to content

POST classes new

rttsai edited this page Nov 27, 2016 · 1 revision

POST classes/new

Creates a new class.

Body Parameters

Name Required Description Default Value Example
teacher optional The identifier of the teacher leading the class. 582f7e45d35339723018e6d2
name optional The name of the class. Defense Against Dark Arts

Example Request

{
  "name": "Defense Against Dark Arts",
  "teacher": "582f7e45d35339723018e6d1"
}

Example Response

{
  "id": "582f7e45d35339723018e6d2",
  "name": "Defense Against Dark Arts",
  "teacher": {
    "id": "582f7e45d35339723018e6d1",
    "name": "Remus Lupin"
  },
  "leadership_board": [],
  "students_enrolled": []
}