Method: accounts.invitations.accept
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Принимает указанное приглашение.
HTTP-запрос
POST https://mybusinessaccountmanagement.googleapis.com/v1/{name=accounts/*/invitations/*}:accept
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
name | string Необходимый. Имя принимаемого приглашения. accounts/{account_id}/invitations/{invitation_id} |
Тело запроса
Тело запроса должно быть пустым.
Тело ответа
В случае успеха тело ответа пустое.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/business.manage
Дополнительную информацию см. в обзоре OAuth 2.0 .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[[["\u003cp\u003eThis document outlines the process and requirements for accepting a specified invitation using the \u003ccode\u003eaccounts/*/invitations/*}:accept\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request is made using an HTTP POST method to the specified URL with an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses will return an empty body, indicating the invitation has been accepted.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request utilizes path parameters to identify the target account and invitation.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.invitations.accept\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nAccepts the specified invitation.\n\n### HTTP request\n\n`POST https://mybusinessaccountmanagement.googleapis.com/v1/{name=accounts/*/invitations/*}:accept`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|---------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the invitation that is being accepted. `accounts/{account_id}/invitations/{invitation_id}` |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]