Acl: insert
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি অ্যাক্সেস নিয়ন্ত্রণ নিয়ম তৈরি করে। এখনই চেষ্টা করে দেখুন ।
অনুরোধ
HTTP অনুরোধ
POST https://www.googleapis.com/calendar/v3/calendars/calendarId/acl
পরামিতি
পরামিতি নাম | মান | বর্ণনা |
---|
পাথ প্যারামিটার |
calendarId | string | ক্যালেন্ডার শনাক্তকারী। ক্যালেন্ডার আইডি পুনরুদ্ধার করতে calendarList.list পদ্ধতিতে কল করুন। আপনি যদি বর্তমানে লগ ইন করা ব্যবহারকারীর প্রাথমিক ক্যালেন্ডার অ্যাক্সেস করতে চান তবে " primary " কীওয়ার্ডটি ব্যবহার করুন৷ |
ঐচ্ছিক ক্যোয়ারী পরামিতি |
sendNotifications | boolean | ক্যালেন্ডার শেয়ারিং পরিবর্তন সম্পর্কে বিজ্ঞপ্তি পাঠাতে হবে কিনা। ঐচ্ছিক। ডিফল্ট সত্য। |
অনুমোদন
এই অনুরোধের জন্য নিম্নলিখিত স্কোপের মধ্যে অন্তত একটির সাথে অনুমোদনের প্রয়োজন:
ব্যাপ্তি |
---|
https://www.googleapis.com/auth/calendar |
https://www.googleapis.com/auth/calendar.acls |
আরও তথ্যের জন্য, প্রমাণীকরণ এবং অনুমোদন পৃষ্ঠাটি দেখুন।
শরীরের অনুরোধ
অনুরোধের অংশে, নিম্নলিখিত বৈশিষ্ট্যগুলির সাথে একটি Acl সংস্থান সরবরাহ করুন:
সম্পত্তির নাম | মান | বর্ণনা | নোট |
---|
প্রয়োজনীয় বৈশিষ্ট্য |
role | string | স্কোপের জন্য নির্ধারিত ভূমিকা। সম্ভাব্য মান হল:- "
none " - কোন অ্যাক্সেস প্রদান করে না। - "
freeBusyReader " - বিনামূল্যে/ব্যস্ত তথ্য পড়ার অ্যাক্সেস প্রদান করে। - "
reader " - ক্যালেন্ডারে পড়ার অ্যাক্সেস প্রদান করে। ব্যক্তিগত ইভেন্টগুলি পাঠক অ্যাক্সেস সহ ব্যবহারকারীদের কাছে প্রদর্শিত হবে, তবে ইভেন্টের বিবরণ লুকানো থাকবে৷ - "
writer " - ক্যালেন্ডারে পড়ার এবং লেখার অ্যাক্সেস প্রদান করে। ব্যক্তিগত ইভেন্টগুলি লেখক অ্যাক্সেস সহ ব্যবহারকারীদের কাছে প্রদর্শিত হবে এবং ইভেন্টের বিবরণ দৃশ্যমান হবে৷ ক্যালেন্ডারের ACL-তে পড়ার অ্যাক্সেস প্রদান করে। - "
owner " - ক্যালেন্ডারের মালিকানা প্রদান করে। এই ভূমিকাটিতে লেখকের ভূমিকার সমস্ত অনুমতি রয়েছে যার সাথে ACLগুলিকে ম্যানিপুলেট করার অতিরিক্ত ক্ষমতা রয়েছে৷
| লিখনযোগ্য |
scope | object | এই ACL নিয়ম দ্বারা ক্যালেন্ডার অ্যাক্সেস মঞ্জুর করা হয়েছে। | |
scope. type | string | সুযোগের ধরন। সম্ভাব্য মান হল:- "
default " - সর্বজনীন সুযোগ। এটি ডিফল্ট মান। - "
user " - একটি একক ব্যবহারকারীর জন্য সুযোগ সীমিত করে। - "
group " - একটি গোষ্ঠীতে সুযোগ সীমিত করে। - "
domain " - একটি ডোমেনের সুযোগকে সীমিত করে। দ্রষ্টব্য: " default " বা সর্বজনীন, স্কোপের জন্য প্রদত্ত অনুমতিগুলি যে কোনো ব্যবহারকারীর জন্য প্রযোজ্য, প্রমাণীকৃত বা না। | |
ঐচ্ছিক বৈশিষ্ট্য |
scope. value | string | একটি ব্যবহারকারী বা গোষ্ঠীর ইমেল ঠিকানা, বা ডোমেনের নাম, সুযোগের প্রকারের উপর নির্ভর করে। " default " টাইপের জন্য বাদ দেওয়া হয়েছে৷ | লিখনযোগ্য |
প্রতিক্রিয়া
সফল হলে, এই পদ্ধতিটি প্রতিক্রিয়া বডিতে একটি Acl সম্পদ প্রদান করে।
এটা চেষ্টা করুন!
লাইভ ডেটাতে এই পদ্ধতিতে কল করতে এবং প্রতিক্রিয়া দেখতে নীচের APIs এক্সপ্লোরার ব্যবহার করুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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,["# Acl: insert\n\n| **Note:** Requires [authorization](#auth).\n\nCreates an access control rule.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/calendar/v3/calendars/calendarId/acl\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|---------------------|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Path parameters** |||\n| `calendarId` | `string` | Calendar identifier. To retrieve calendar IDs call the [calendarList.list](/workspace/calendar/api/v3/reference/calendarList/list) method. If you want to access the primary calendar of the currently logged in user, use the \"`primary`\" keyword. |\n| **Optional query parameters** |||\n| `sendNotifications` | `boolean` | Whether to send notifications about the calendar sharing change. Optional. The default is True. |\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes:\n\n| Scope |\n|-------------------------------------------------|\n| `https://www.googleapis.com/auth/calendar` |\n| `https://www.googleapis.com/auth/calendar.acls` |\n\nFor more information, see the [authentication and authorization](/workspace/guides/configure-oauth-consent) page.\n\n### Request body\n\nIn the request body, supply an [Acl resource](/workspace/calendar/api/v3/reference/acl#resource) with the following properties:\n\n| Property name | Value | Description | Notes |\n|---------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|\n| **Required Properties** ||||\n| `role` | `string` | The role assigned to the scope. Possible values are: - \"`none`\" - Provides no access. - \"`freeBusyReader`\" - Provides read access to free/busy information. - \"`reader`\" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden. - \"`writer`\" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible. Provides read access to the calendar's ACLs. - \"`owner`\" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to manipulate ACLs. | writable |\n| `scope` | `object` | The extent to which [calendar access](https://developers.google.com/workspace/calendar/concepts/sharing#sharing_calendars) is granted by this ACL rule. | |\n| scope.`type` | `string` | The type of the scope. Possible values are: - \"`default`\" - The public scope. This is the default value. - \"`user`\" - Limits the scope to a single user. - \"`group`\" - Limits the scope to a group. - \"`domain`\" - Limits the scope to a domain. Note: The permissions granted to the \"`default`\", or public, scope apply to any user, authenticated or not. | |\n| **Optional Properties** ||||\n| scope.`value` | `string` | The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type \"`default`\". | writable |\n\nResponse\n--------\n\nIf successful, this method returns an [Acl resource](/workspace/calendar/api/v3/reference/acl#resource) in the response body.\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response."]]