curl -X POST https://api.chessplay.io/api/v1/batches/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Advanced Batch", "coach_id": 5}'
{
"id": 2,
"name": "Advanced Batch",
"coach": {...},
"students": [],
"student_count": 0
}
Create a new batch
curl -X POST https://api.chessplay.io/api/v1/batches/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Advanced Batch", "coach_id": 5}'
{
"id": 2,
"name": "Advanced Batch",
"coach": {...},
"students": [],
"student_count": 0
}
curl -X POST https://api.chessplay.io/api/v1/batches/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Advanced Batch", "coach_id": 5}'
{
"id": 2,
"name": "Advanced Batch",
"coach": {...},
"students": [],
"student_count": 0
}
Was this page helpful?