Account Management API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
更新日志
v1.1
转移营业地点
现在,您可以使用 Account Management API 来转移营业地点。请求正文必须包含 destinationAccount
(以前称为 toAccount
)。了解详情。
v1
API 权限
Account Management API 将需要从 GCP Console 启用。OAuth 范围保持不变。
端点网址
可以通过 https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}
(而不是 https://mybusiness.googleapis.com/v4/accounts/{accountId}
)使用 Account Management API
ListInvitations 过滤
以前,可以使用 target_type
网址参数过滤邀请。在 Account Management API 中,此参数已替换为 filter
参数。客户端将可以使用 ?filter=target_type=ACCOUNT_ONLY
等值进行过滤。
主要所有者
“PrimaryOwner”已移至 accounts.create 方法中的 POST 正文。以前,它属于查询参数。
GenerateAccountNumber
功能已弃用。
ListRecommendGoogleLocations
功能已弃用。
现在所有更新都需要字段掩码
如果网址中没有 updateMask 参数,您将无法再进行更新/补丁程序调用。
更新了账号角色和管理员角色的名称
账号/管理员角色名称已进行如下更改:
之前的名称 |
更新后的名称 |
OWNER |
PRIMARY_OWNER |
CO_OWNER |
OWNER |
COMMUNITY_MANAGER |
SITE_MANAGER |
OrganizationInfo.postal_address 已重命名为 OrganizationInfo.address
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[[["\u003cp\u003eThe Account Management API now allows location transfers and requires enabling from the GCP Console.\u003c/p\u003e\n"],["\u003cp\u003eThe API endpoint URL, ListInvitations filtering, and PrimaryOwner parameter location have been updated.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGenerateAccountNumber\u003c/code\u003e and \u003ccode\u003eListRecommendGoogleLocations\u003c/code\u003e functionalities are deprecated, and all updates now require a field mask.\u003c/p\u003e\n"],["\u003cp\u003eAccount and admin role names have been updated (e.g., OWNER is now PRIMARY_OWNER), and OrganizationInfo.postal_address is renamed to OrganizationInfo.address.\u003c/p\u003e\n"]]],["The Account Management API now allows location transfers via the `destinationAccount` field. API access is enabled through the GCP Console, with a new endpoint URL. Invitation filtering now uses a `filter` parameter. `PrimaryOwner` moved to the POST body of `accounts.create`. `GenerateAccountNumber` and `ListRecommendGoogleLocations` are deprecated. All updates require a field mask. Account role names have been revised (e.g., OWNER to PRIMARY_OWNER), and `OrganizationInfo.postal_address` is now `OrganizationInfo.address`.\n"],null,["# Account Management API\n\n\u003cbr /\u003e\n\nChange log\n----------\n\n### v1.1\n\n#### Transfer Locations\n\nYou can now use the Account Management API to transfer locations. The request body must include `destinationAccount` (previously referred to as `toAccount`.) [More info.](/my-business/reference/accountmanagement/rest/v1/locations/transfer)\n\n### v1\n\n#### API Access\n\nThe Account Management API will need to be enabled from the [GCP Console.](https://console.developers.google.com/apis/library/mybusinessaccountmanagement.googleapis.com) The OAuth scope remains the same.\n\n#### Endpoint URL\n\nThe Account Management API is accessible at `https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}` instead of `https://mybusiness.googleapis.com/v4/accounts/{accountId}`\n\n#### ListInvitations filtering\n\nPreviously, invitations could be filtered using the `target_type` URL parameter. In the Account Management API, this has been replaced with a `filter` parameter. Clients will be able to filter using values like `?filter=target_type=ACCOUNT_ONLY`.\n\n#### Primary Owner\n\n\\`PrimaryOwner' has moved to the POST body in the [accounts.create](/my-business/content/accountmanagement/my-business/preview/reference/accountmanagement/rest/v1/accounts/create) method. Previously this was a query parameter.\n\n#### `GenerateAccountNumber` functionality has been deprecated.\n\n#### `ListRecommendGoogleLocations` functionality has been deprecated.\n\n#### All updates now require a field mask\n\nYou can no longer make update/patch calls without the updateMask parameter in the URL.\n\n#### Updated account role and admin role names\n\nAccount/Admin roles names have changed as follows:\n\n| Previous name | Updated name |\n|-------------------|---------------|\n| OWNER | PRIMARY_OWNER |\n| CO_OWNER | OWNER |\n| COMMUNITY_MANAGER | SITE_MANAGER |\n\n#### OrganizationInfo.postal_address is renamed to OrganizationInfo.address"]]