Skip to main content
POST
/
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"
}

Documentation Index

Fetch the complete documentation index at: https://developer.chessplay.io/llms.txt

Use this file to discover all available pages before exploring further.

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"
}