Method: courses.update
עדכון קורס.
השיטה הזו מחזירה את קודי השגיאה הבאים:
PERMISSION_DENIED
אם המשתמש ששלח את הבקשה לא מורשה לשנות את הקורס המבוקש או בגלל שגיאות גישה.
NOT_FOUND
אם לא קיים קורס עם המזהה המבוקש.
FAILED_PRECONDITION
עבור שגיאות הבקשה הבאות:
בקשת HTTP
PUT https://classroom.googleapis.com/v1/courses/{id}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
id |
string
מזהה הקורס שיש לעדכן. המזהה יכול להיות המזהה שהוקצה ל-Classroom או alias .
|
גוף הבקשה
גוף הבקשה מכיל מופע של Course
.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של Course
.
היקפי הרשאות
נדרש היקף OAuth הבא:
https://www.googleapis.com/auth/classroom.courses
למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-05 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-05 (שעון UTC)."],[[["Updates an existing course using its identifier, allowing modifications to course details."],["Requires `https://www.googleapis.com/auth/classroom.courses` scope for authorization to make changes."],["Returns the updated course details in the response or specific error codes if unsuccessful."],["Possible errors include permission issues, invalid course identifiers, and course modification restrictions."],["Utilizes a PUT request with the course ID in the path and the updated course details in the request body."]]],[]]