סקירה כללית על Groups Settings API
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Groups Settings API מעדכן ומאחזר הגדרות של קבוצת Google קיימת. באמצעות ה-API תוכלו לבצע את הפעולות הבאות:
- לשנות את ההגדרות של קבוצה לגישה פנימית וחיצונית.
- עורכים את ההתראות של הקבוצה.
- הגדרת העברה של דיונים לארכיון וניהול הודעות.
- להתאים אישית את קבוצות המשתמשים בחשבון.
דרכים נוספות לעבוד עם קבוצות Google או לנהל סוגים אחרים של קבוצות מפורטות במסמכי התיעוד של Cloud Identity.
מודל הנתונים של Groups Settings API
ה-API של הגדרות הקבוצות פועל על משאב Groups
שמייצג את האופן שבו משתמשים בחשבון מתקשרים ועובדים בשיתוף פעולה עם קבוצות של אנשים אחרים. כל קבוצה מזוהה באמצעות כתובת האימייל שלה.
מודל הנתונים של API מבוסס על האוסף Groups
של הקבוצות בחשבון. לכל קבוצה יש קבוצה ייחודית של הגדרות אישיות.
פעולות של Groups Settings API
אפשר להפעיל שיטות של הגדרות קבוצה ב-Groups Settings API, כפי שמתואר בטבלה הבאה:
פעולה |
תיאור |
מיפויים של HTTP ל-REST |
get |
אחזור ההגדרות של קבוצה בחשבון של לקוח. כל פעולות האחזור חייבות להיות מאושרות על ידי משתמש מאומת. |
GET ב-URI של קבוצה. |
update |
עדכון ההגדרות של קבוצה בחשבון של לקוח. כל פעולות העדכון חייבות להיות מאושרות על ידי משתמש מאומת. |
PUT ב-URI של קבוצה. |
כברירת מחדל, הנתונים שמוחזרים על ידי Groups Settings API הם בפורמט JSON. סימון Atom הוא פורמט נתונים חלופי. גם פורמט הנתונים של JSON וגם פורמט הנתונים של Atom תומכים ביכולות קריאה וכתיבה מלאות.
JSON הוא פורמט נפוץ באינטרנט שמספק שיטה לייצוג מבני נתונים שרירותיים. לפי json.org, JSON הוא פורמט טקסט בלתי תלוי בשפה, אבל הוא משתמש במוסכמות שידועות למתכנתים של שפות ממשפחת C, כולל C, C++, C#, Java, JavaScript, Perl ו-Python.
כדי לשנות את פורמט הנתונים של ה-API, צריך לכלול את מחרוזת השאילתה alt
ב-URI של הבקשה. לדוגמה:
JSON
GET https://www.googleapis.com/groups/v1/groups/salesgroup@example.com?alt=json
Atom
GET https://www.googleapis.com/groups/v1/groups/salesgroup@example.com?alt=atom
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-29 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-29 (שעון UTC)."],[],[],null,["# Groups Settings API overview\n\nThe Groups Settings API updates and retrieves settings for an existing\n[Google Group](https://support.google.com/a/topic/25838?&ref_topic=9197). Through\nthe API, you can do the following:\n\n- Modify a group's settings for internal and external group access.\n- Edit the group's notifications.\n- Configure discussion archiving and message moderation.\n- Customize your account's user groups.\n\nFor more ways to work with Google Groups, or manage other types of groups, see the\n[Cloud Identity documentation](https://cloud.google.com/identity/docs).\n\n### Groups Settings API data model\n\nThe Groups Settings API operates on a `Groups` resource which represents how users\nwithin an account communicate and collaborate with groups of other people. Each group is identified\nby the group's email address.\n\nThe API data model is based on the `Groups` collection of the account's groups. Each\ngroup has a unique set of configuration settings.\n\n### Groups Settings API operations\n\nYou can call group settings methods in the Groups Settings API, as described in the following\ntable:\n\n| Operation | Description | REST HTTP mappings |\n|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------|\n| `get` | Gets a group's settings for a customer's account. All get operations must be authorized by an [authenticated](/workspace/guides/auth-overview) user. | `GET` on a group URI. |\n| `update` | Updates a group's settings for a customer's account. All update operations must be authorized by an [authenticated](/workspace/guides/auth-overview) user. | `PUT` on a group URI. |\n\nJSON and Atom data formats\n--------------------------\n\nBy default, the Groups Settings API returns data in JSON format. The Atom notation is an alternate\ndata format. Both the JSON and Atom data formats support full read-write capabilities.\n\nJSON is a common\ninternet format that provides a method of representing arbitrary data structures. According to\n[json.org](http://www.json.org), JSON is a text format\nthat is completely language-independent but uses conventions that are familiar to programmers of\nthe C-family of languages, including C, C++, C#, Java, JavaScript, Perl, and Python.\n\n\u003cbr /\u003e\n\nTo change the API's data format, include the `alt` query string in your request's\nURI---for example:\n\n### JSON\n\n```\nGET https://www.googleapis.com/groups/v1/groups/salesgroup@example.com?alt=json\n```\n\n### Atom\n\n```\nGET https://www.googleapis.com/groups/v1/groups/salesgroup@example.com?alt=atom\n```"]]