Skip to main content
PATCH
https://api.chessplay.io
/
api
/
v1
/
students
/
{id}
curl -X PATCH https://api.chessplay.io/api/v1/students/123/ \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "first_name": "Jane",
    "email": "jane@example.com"
  }'
{
  "id": 123,
  "username": "FastMalamute",
  "email": "jane@example.com",
  "phone_number": "+1234567890",
  "first_name": "Jane",
  "last_name": "Doe",
  "public_report_id": "abc-123-def-456",
  "created": "2024-01-15T10:30:00Z"
}

Authentication

Authorization
string
required
Bearer token for authentication (Admin only)

Path Parameters

id
integer
required
Student ID

Body Parameters

email
string
Student’s email address
first_name
string
Student’s first name
last_name
string
Student’s last name
phone_number
string
Student’s phone number
password
string
New password (optional)
curl -X PATCH https://api.chessplay.io/api/v1/students/123/ \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "first_name": "Jane",
    "email": "jane@example.com"
  }'
{
  "id": 123,
  "username": "FastMalamute",
  "email": "jane@example.com",
  "phone_number": "+1234567890",
  "first_name": "Jane",
  "last_name": "Doe",
  "public_report_id": "abc-123-def-456",
  "created": "2024-01-15T10:30:00Z"
}
Only Admin users can update students.