curl -X PATCH https://api.chessplay.io/api/v1/classrooms/1/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Updated Name"}'
{
"id": 1,
"name": "Updated Name",
"description": "Introduction to chess",
"coach": {...},
"students": [],
"start_time": "2024-01-20T10:00:00Z",
"end_time": "2024-01-20T11:00:00Z",
"created": "2024-01-15T10:30:00Z"
}
Update classroom information
curl -X PATCH https://api.chessplay.io/api/v1/classrooms/1/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Updated Name"}'
{
"id": 1,
"name": "Updated Name",
"description": "Introduction to chess",
"coach": {...},
"students": [],
"start_time": "2024-01-20T10:00:00Z",
"end_time": "2024-01-20T11:00:00Z",
"created": "2024-01-15T10:30:00Z"
}
curl -X PATCH https://api.chessplay.io/api/v1/classrooms/1/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "Updated Name"}'
{
"id": 1,
"name": "Updated Name",
"description": "Introduction to chess",
"coach": {...},
"students": [],
"start_time": "2024-01-20T10:00:00Z",
"end_time": "2024-01-20T11:00:00Z",
"created": "2024-01-15T10:30:00Z"
}
Was this page helpful?