Method: accounts.admins.patch
Обновляет администратора для указанного администратора учетной записи. Обновить можно только роль AdminRole администратора.
HTTP-запрос
PATCH https://mybusiness.googleapis.com/v4/{name=accounts/*/admins/*}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
name | string Имя ресурса администратора, которого требуется обновить. |
Тело запроса
Тело запроса содержит экземпляр Admin
.
Тело ответа
В случае успеха тело ответа содержит экземпляр Admin
.
Области авторизации
Требуется одна из следующих областей OAuth:
-
https://www.googleapis.com/auth/plus.business.manage
-
https://www.googleapis.com/auth/business.manage
Дополнительную информацию см. в обзоре OAuth 2.0 .
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-10-26 UTC.
[null,null,["Последнее обновление: 2024-10-26 UTC."],[[["This documentation details the process for updating an Account Admin for a specified account, but it's deprecated and the Account Management API should be used instead."],["Only the AdminRole of the Admin can be updated using a PATCH request to the specified URL with the necessary path parameters."],["The request and response bodies both utilize the Admin object for data transfer."],["Authorization requires specific OAuth scopes like `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage`."]]],["This document details updating an admin for a specified account using a PATCH request to `https://mybusiness.googleapis.com/v4/{name=accounts/*/admins/*}`. The `name` path parameter, a string representing the admin's resource name, is required. The request body should contain an `Admin` instance, and upon success, the response body will also contain an `Admin` instance. Authorization requires either `plus.business.manage` or `business.manage` OAuth scopes. This method is deprecated in favor of the Account Management API.\n"]]