REST Resource: courses.teachers
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Ресурс: Учитель
JSON-представление |
---|
{
"courseId": string,
"userId": string,
"profile": {
object (UserProfile )
}
} |
Поля |
---|
courseId | string Идентификатор курса. Только для чтения. |
userId | string Идентификатор пользователя. Если этот идентификатор указан в качестве параметра запроса, этот идентификатор может быть одним из следующих: - числовой идентификатор пользователя
- адрес электронной почты пользователя
- строковый литерал
"me" , указывающий запрашивающего пользователя
|
profile | object ( UserProfile ) Глобальная информация пользователя для учителя. Только для чтения. |
Методы |
---|
| Создает преподавателя курса. |
| Удаляет указанного преподавателя из указанного курса. |
| Возвращает преподавателя курса. |
| Возвращает список преподавателей этого курса, которых запрашивающему разрешено просматривать. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[],[],null,["# REST Resource: courses.teachers\n\n- [Resource: Teacher](#Teacher)\n - [JSON representation](#Teacher.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Teacher\n-----------------\n\nTeacher of a course.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"courseId\": string, \"userId\": string, \"profile\": { object (/workspace/classroom/reference/rest/v1/userProfiles#UserProfile) } } ``` |\n\n| Fields ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `courseId` | `string` Identifier of the course. Read-only. |\n| `userId` | `string` Identifier of the user. When specified as a parameter of a request, this identifier can be one of the following: - the numeric identifier for the user - the email address of the user - the string literal `\"me\"`, indicating the requesting user |\n| `profile` | `object (`[UserProfile](/workspace/classroom/reference/rest/v1/userProfiles#UserProfile)`)` Global user information for the teacher. Read-only. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| ### [create](/workspace/classroom/reference/rest/v1/courses.teachers/create) | Creates a teacher of a course. |\n| ### [delete](/workspace/classroom/reference/rest/v1/courses.teachers/delete) | Removes the specified teacher from the specified course. |\n| ### [get](/workspace/classroom/reference/rest/v1/courses.teachers/get) | Returns a teacher of a course. |\n| ### [list](/workspace/classroom/reference/rest/v1/courses.teachers/list) | Returns a list of teachers of this course that the requester is permitted to view. |"]]