Skip to main content
POST
https://api.chessplay.io
/
api
/
v1
/
classrooms
curl -X POST https://api.chessplay.io/api/v1/classrooms/ \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Advanced Chess"}'
{
  "id": 2,
  "name": "Advanced Chess",
  "description": "For experienced players",
  "coach": {...},
  "students": [],
  "start_time": "2024-01-20T10:00:00Z",
  "end_time": "2024-01-20T11:00:00Z"
}

Authentication

Authorization
string
required
Bearer token (Admin only)

Body Parameters

name
string
required
Classroom name
description
string
Classroom description
coach
integer
Coach ID (defaults to authenticated user)
students
array
Array of student IDs
curl -X POST https://api.chessplay.io/api/v1/classrooms/ \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Advanced Chess"}'
{
  "id": 2,
  "name": "Advanced Chess",
  "description": "For experienced players",
  "coach": {...},
  "students": [],
  "start_time": "2024-01-20T10:00:00Z",
  "end_time": "2024-01-20T11:00:00Z"
}