Method: accounts.patch
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定したビジネス アカウントを更新します。この方法で個人アカウントを更新することはできません。
HTTP リクエスト
PATCH https://mybusinessaccountmanagement.googleapis.com/v1/{account.name=accounts/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
account.name |
string
変更不可。リソース名(accounts/{account_id} 形式)。
|
クエリ パラメータ
パラメータ |
updateMask |
string (FieldMask format)
必須。更新するフィールドです。編集可能なフィールドは accountName のみです。 完全修飾フィールド名のカンマ区切りリストです。(例: "user.displayName,photo" )。
|
validateOnly |
boolean
(省略可)true の場合、アカウントが実際に更新されることなく、リクエストの検証のみが行われます。
|
リクエスト本文
リクエストの本文には Account
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には Account
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/business.manage
詳細については、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],["This describes updating a business account via a `PATCH` request to `https://mybusinessaccountmanagement.googleapis.com/v1/{account.name=accounts/*}`. The `account.name` path parameter, using the format `accounts/{account_id}`, identifies the target account. The `updateMask` query parameter, which is required, specifies editable fields, with `accountName` as the only allowed field. You can also add the `validateOnly` parameter. The request and response bodies both contain an `Account` instance. The operation requires the `https://www.googleapis.com/auth/business.manage` authorization scope.\n"],null,[]]