Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Interfejs Groups Settings API aktualizuje i pobiera ustawienia istniejącej grupy Google. Za pomocą interfejsu API możesz:
Modyfikować ustawienia grupy dotyczące dostępu wewnętrznego i zewnętrznego.
Edytuj powiadomienia grupy.
Skonfiguruj archiwizację dyskusji i moderowanie wiadomości.
Dostosowywanie grup użytkowników na koncie.
Więcej sposobów na korzystanie z Google Groups lub zarządzanie innymi typami grup znajdziesz w dokumentacji Cloud Identity.
Model danych interfejsu Groups Settings API
Interfejs Groups Settings API działa na zasobie Groups, który reprezentuje sposób, w jaki użytkownicy konta komunikują się i współpracują z grupami innych osób. Każda grupa jest identyfikowana przez adres e-mail grupy.
Model danych interfejsu API jest oparty na kolekcji Groups grup na koncie. Każda grupa ma unikalny zestaw ustawień konfiguracji.
Operacje w interfejsie Groups Settings API
W interfejsie Groups Settings API możesz wywoływać metody ustawień grup, jak opisano w tabeli poniżej:
Operacja
Opis
Mapowania HTTP REST
get
Pobiera ustawienia grupy na koncie klienta. Wszystkie operacje „get” muszą być autoryzowane przez użytkownika, który jest uwierzytelniony.
GET w identyfikatorze URI grupy.
update
Zmienia ustawienia grupy na koncie klienta. Wszystkie operacje aktualizacji muszą być autoryzowane przez uwierzytelnionego użytkownika.
PUT na identyfikatorze URI grupy.
Formaty danych JSON i Atom
Domyślnie interfejs Groups Settings API zwraca dane w formacie JSON. Notacja Atom to alternatywny format danych. Zarówno formaty danych JSON, jak i Atom obsługują pełne funkcje odczytu i zapisu.
JSON to popularny format internetowy, który umożliwia przedstawianie dowolnych struktur danych. Według strony json.org format JSON jest formatem tekstowym, który jest całkowicie niezależny od języka, ale używa konwencji znanych programistom znającym języki z rodziny C, w tym C, C++, C#, Java, JavaScript, Perl i Python.
Aby zmienić format danych interfejsu API, uwzględnij ciąg zapytania alt w identyfikatorze URI żądania, na przykład:
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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```"]]