REST Resource: accounts.invitations
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Ресурс: Приглашение
Только вывод. Представляет ожидающее приглашение.
JSON-представление |
---|
{
"name": string,
"role": enum (AdminRole ),
// Union field target can be only one of the following:
"targetAccount": {
object (Account )
},
"targetLocation": {
object (TargetLocation )
}
// End of list of possible types for union field target .
} |
Поля |
---|
name | string Имя ресурса для приглашения. |
role | enum ( AdminRole ) Приглашенная роль на аккаунте. |
target Союза. Указывает цель, для которой предназначено это приглашение. target может быть только одно из следующих: |
targetAccount | object ( Account ) Малонаселенный аккаунт, для которого предназначено это приглашение. |
targetLocation | object ( TargetLocation ) Целевое местоположение, для которого предназначено это приглашение. |
Целевое местоположение
Представляет целевое расположение для ожидающего приглашения.
JSON-представление |
---|
{
"locationName": string,
"locationAddress": string
} |
Поля |
---|
locationName | string Название локации, в которую приглашен пользователь. |
locationAddress | string Адрес локации, в которую приглашен пользователь. |
Методы |
---|
accept (deprecated) | Принимает указанное приглашение. |
| Отклоняет указанное приглашение. |
list (deprecated) | Перечисляет ожидающие приглашения для указанной учетной записи. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[[["\u003cp\u003eThis documentation details the 'Invitation' resource, which represents a pending invitation to a Google Business Profile account or location.\u003c/p\u003e\n"],["\u003cp\u003eInvitations specify a role for the invitee and the target account or location.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eTargetLocation\u003c/code\u003e object is used when the invitation is for a specific location within a business account, providing the location's name and address.\u003c/p\u003e\n"],["\u003cp\u003eThe available methods (accept, decline, list) for managing invitations are deprecated.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts.invitations\n\n- [Resource: Invitation](#Invitation)\n - [JSON representation](#Invitation.SCHEMA_REPRESENTATION)\n- [TargetLocation](#TargetLocation)\n - [JSON representation](#TargetLocation.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Invitation\n--------------------\n\nOutput only. Represents a pending invitation.\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"role\": enum (/my-business/reference/rest/v4/AdminRole), // Union field `target` can be only one of the following: \"targetAccount\": { object (/my-business/reference/rest/v4/accounts#Account) }, \"targetLocation\": { object (/my-business/reference/rest/v4/accounts.invitations#TargetLocation) } // End of list of possible types for union field `target`. } ``` |\n\n| Fields ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|---|\n| `name` | `string` The resource name for the invitation. |\n| `role` | `enum (`[AdminRole](/my-business/reference/rest/v4/AdminRole)`)` The invited role on the account. |\n| Union field `target`. Indicates the target this invitation is for. `target` can be only one of the following: |||\n| `targetAccount` | `object (`[Account](/my-business/reference/rest/v4/accounts#Account)`)` The sparsely populated account this invitation is for. |\n| `targetLocation` | `object (`[TargetLocation](/my-business/reference/rest/v4/accounts.invitations#TargetLocation)`)` The target location this invitation is for. |\n\nTargetLocation\n--------------\n\nRepresents a target location for a pending invitation.\n\n| JSON representation ||\n|---------------------------------------------------------------|---|\n| ``` { \"locationName\": string, \"locationAddress\": string } ``` |\n\n| Fields ||\n|-------------------|--------------------------------------------------------------------|\n| `locationName` | `string` The name of the location to which the user is invited. |\n| `locationAddress` | `string` The address of the location to which the user is invited. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------------|------------------------------------------------------|\n| ### [accept](/my-business/reference/rest/v4/accounts.invitations/accept)` ` **(deprecated)** | Accepts the specified invitation. |\n| ### [decline](/my-business/reference/rest/v4/accounts.invitations/decline)` ` **(deprecated)** | Declines the specified invitation. |\n| ### [list](/my-business/reference/rest/v4/accounts.invitations/list)` ` **(deprecated)** | Lists pending invitations for the specified account. |"]]