গুগল ক্লাসরুম অ্যাড-অনগুলি এখন সাধারণত বিকাশকারীদের জন্য উপলব্ধ! আরও তথ্যের জন্য
অ্যাড-অন ডকুমেন্টেশন দেখুন.
Method: courses.students.create
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি কোর্সের ছাত্র হিসাবে একজন ব্যবহারকারীকে যোগ করে।
ডোমেন অ্যাডমিনিস্ট্রেটররা তাদের ডোমেনের মধ্যে ব্যবহারকারীদের সরাসরি তাদের ডোমেনের মধ্যে কোর্সে ছাত্র হিসাবে যুক্ত করার অনুমতি দেয়। শিক্ষার্থীদের একটি তালিকাভুক্তি কোড ব্যবহার করে একটি কোর্সে নিজেদের যোগ করার অনুমতি দেওয়া হয়।
এই পদ্ধতি নিম্নলিখিত ত্রুটি কোড প্রদান করে:
-
PERMISSION_DENIED
যদি অনুরোধকারী ব্যবহারকারীকে এই কোর্সে বা অ্যাক্সেস ত্রুটির জন্য ছাত্র তৈরি করার অনুমতি না দেওয়া হয়। -
NOT_FOUND
যদি অনুরোধ করা কোর্স আইডি বিদ্যমান না থাকে। -
FAILED_PRECONDITION
যদি অনুরোধ করা ব্যবহারকারীর অ্যাকাউন্টটি নিষ্ক্রিয় করা হয়, নিম্নলিখিত অনুরোধ ত্রুটির জন্য:- কোর্স মেম্বার লিমিটে পৌঁছেছে
- কোর্স না পরিবর্তনযোগ্য
- UserGroupsMembership LimitReached
- নিষ্ক্রিয় কোর্সের মালিক
-
ALREADY_EXISTS
যদি ব্যবহারকারী ইতিমধ্যেই একজন ছাত্র বা শিক্ষক হয়।
HTTP অনুরোধ
POST https://classroom.googleapis.com/v1/courses/{courseId}/students
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
courseId | string ছাত্র তৈরি করার জন্য কোর্সের আইডেন্টিফায়ার। এই আইডেন্টিফায়ারটি হয় ক্লাসরুম-অর্পিত আইডেন্টিফায়ার বা একটি alias হতে পারে। |
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
enrollmentCode | string ছাত্র তৈরি করার জন্য কোর্সের এনরোলমেন্ট কোড। userId অনুরোধকারী ব্যবহারকারীর সাথে মিল থাকলে এই কোডের প্রয়োজন হয়; অনুরোধকারী ব্যবহারকারীর কোনো ব্যবহারকারীর জন্য ছাত্র তৈরি করার প্রশাসনিক অনুমতি থাকলে এটি বাদ দেওয়া যেতে পারে। |
শরীরের অনুরোধ
অনুরোধের মূল অংশে Student
একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, রেসপন্স বডিতে Student
এর একটি নতুন তৈরি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
https://www.googleapis.com/auth/classroom.rosters
-
https://www.googleapis.com/auth/classroom.profile.emails
-
https://www.googleapis.com/auth/classroom.profile.photos
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Method: courses.students.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nAdds a user as a student of a course.\n\nDomain administrators are permitted to [directly add](https://developers.google.com/workspace/classroom/guides/manage-users) users within their domain as students to courses within their domain. Students are permitted to add themselves to a course using an enrollment code.\n\nThis method returns the following error codes:\n\n- `PERMISSION_DENIED` if the requesting user is not permitted to create students in this course or for [access errors](/workspace/classroom/reference/Access.Errors).\n- `NOT_FOUND` if the requested course ID does not exist.\n- `FAILED_PRECONDITION` if the requested user's account is disabled, for the following [request errors](/workspace/classroom/reference/Request.Errors):\n - CourseMemberLimitReached\n - CourseNotModifiable\n - UserGroupsMembershipLimitReached\n - InactiveCourseOwner\n- `ALREADY_EXISTS` if the user is already a student or teacher in the course.\n\n### HTTP request\n\n`POST https://classroom.googleapis.com/v1/courses/{courseId}/students`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `courseId` | `string` Identifier of the course to create the student in. This identifier can be either the Classroom-assigned identifier or an [alias](/workspace/classroom/reference/rest/v1/courses.aliases#CourseAlias). |\n\n### Query parameters\n\n| Parameters ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `enrollmentCode` | `string` Enrollment code of the course to create the student in. This code is required if [userId](/workspace/classroom/reference/rest/v1/courses.students#Student.FIELDS.user_id) corresponds to the requesting user; it may be omitted if the requesting user has administrative permissions to create students for any user. |\n\n### Request body\n\nThe request body contains an instance of [Student](/workspace/classroom/reference/rest/v1/courses.students#Student).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Student](/workspace/classroom/reference/rest/v1/courses.students#Student).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/classroom.rosters`\n- `\n https://www.googleapis.com/auth/classroom.profile.emails`\n- `\n https://www.googleapis.com/auth/classroom.profile.photos`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]