curl -X POST https://api.chessplay.io/api/v1/batches/1/add-student/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"student_id": 123}'
{
"message": "Student added successfully",
"student": {
"id": 123,
"username": "FastMalamute",
"name": "John Doe"
}
}
Add a student to a batch
curl -X POST https://api.chessplay.io/api/v1/batches/1/add-student/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"student_id": 123}'
{
"message": "Student added successfully",
"student": {
"id": 123,
"username": "FastMalamute",
"name": "John Doe"
}
}
curl -X POST https://api.chessplay.io/api/v1/batches/1/add-student/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"student_id": 123}'
{
"message": "Student added successfully",
"student": {
"id": 123,
"username": "FastMalamute",
"name": "John Doe"
}
}
Was this page helpful?