Skip to main content

classrooms

Creates, updates, deletes, gets or lists a classrooms resource.

Overview

Nameclassrooms
TypeResource
Idgithub.classroom.classrooms

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idintegerUnique identifier of the classroom.
namestringThe name of the classroom. (example: Programming Elixir)
archivedbooleanWhether classroom is archived.
organizationobjectA GitHub organization. (title: Organization Simple for Classroom)
urlstringThe URL of the classroom on GitHub Classroom. (example: https://classroom.github.com/classrooms/1-programming-elixir)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_a_classroomselectclassroom_id> [!WARNING]
> Closing down notice: This operation is closing down and will be removed on August 28, 2026.
> For more information, see the GitHub Classroom sunset notice.

Gets a GitHub Classroom classroom for the current user. Classroom will only be returned if the current user is an administrator of the GitHub Classroom.
list_classroomsselectpage, per_page> [!WARNING]
> Closing down notice: This operation is closing down and will be removed on August 28, 2026.
> For more information, see the GitHub Classroom sunset notice.

Lists GitHub Classroom classrooms for the current user. Classrooms will only be returned if the current user is an administrator of one or more GitHub Classrooms.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
classroom_idintegerThe unique identifier of the classroom.
pageintegerThe page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

SELECT examples

> [!WARNING]
> Closing down notice: This operation is closing down and will be removed on August 28, 2026.
> For more information, see the GitHub Classroom sunset notice.

Gets a GitHub Classroom classroom for the current user. Classroom will only be returned if the current user is an administrator of the GitHub Classroom.

SELECT
id,
name,
archived,
organization,
url
FROM github.classroom.classrooms
WHERE classroom_id = '{{ classroom_id }}' -- required
;