REST Resource: accounts.locations.admins
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:Admin
JSON 表示法 |
{
"name": string,
"adminName": string,
"role": enum (AdminRole ),
"pendingInvitation": boolean
} |
字段 |
name |
string
资源名称。 对于账号管理员,其格式为:accounts/{accountId}/admins/{adminId} 对于营业地点管理员,其格式为:accounts/{accountId}/locations/{locationId}/admins/{adminId}
|
adminName |
string
管理员的姓名。发出初始邀请时,这是邀请对象的电子邮件地址。调用 GET 时,如果邀请仍处于待处理状态,则返回用户的电子邮件地址。否则,它包含用户的名字和姓氏。
|
role |
enum (AdminRole )
指定此管理员用于指定的 Account 或 Location 资源的 AdminRole 。
|
pendingInvitation |
boolean
仅限输出。指明此管理员是否有对指定资源的待处理邀请。
|
方法 |
create (deprecated)
|
邀请指定用户担任指定营业地点的管理员。 |
delete (deprecated)
|
移除担任指定营业地点管理员的指定管理员。 |
list (deprecated)
|
列出指定营业地点的所有管理员。 |
patch (deprecated)
|
更新指定营业地点管理员的管理员。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eAn Admin resource represents an administrator for a Google My Business Account or Location, with details such as name, role, and pending invitation status.\u003c/p\u003e\n"],["\u003cp\u003eAdmins have specific roles within an Account or Location, and their information is organized in a structured JSON format.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage Admins (inviting, removing, updating, or viewing them) using dedicated methods, although some methods like \u003ccode\u003ecreate\u003c/code\u003e, \u003ccode\u003edelete\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e, and \u003ccode\u003epatch\u003c/code\u003e are currently deprecated.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAdmin\u003c/code\u003e resource includes fields like \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003eadminName\u003c/code\u003e, \u003ccode\u003erole\u003c/code\u003e, and \u003ccode\u003ependingInvitation\u003c/code\u003e to provide comprehensive information about the administrator.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts.locations.admins\n\n- [Resource: Admin](#Admin)\n - [JSON representation](#Admin.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Admin\n---------------\n\nAn administrator of an [Account](/my-business/reference/rest/v4/accounts#Account) or a [Location](/my-business/reference/rest/v4/accounts.locations#Location).\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"adminName\": string, \"role\": enum (/my-business/reference/rest/v4/AdminRole), \"pendingInvitation\": boolean } ``` |\n\n| Fields ||\n|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The resource name. For account admins, this is in the form: `accounts/{accountId}/admins/{adminId}` For location admins, this is in the form: `accounts/{accountId}/locations/{locationId}/admins/{adminId}` |\n| `adminName` | `string` The name of the admin. When making the initial invitation, this is the invitee's email address. On `GET` calls, the user's email address is returned if the invitation is still pending. Otherwise, it contains the user's first and last names. |\n| `role` | `enum (`[AdminRole](/my-business/reference/rest/v4/AdminRole)`)` Specifies the [AdminRole](/my-business/reference/rest/v4/AdminRole) that this admin uses with the specified [Account](/my-business/reference/rest/v4/accounts#Account) or [Location](/my-business/reference/rest/v4/accounts.locations#Location) resource. |\n| `pendingInvitation` | `boolean` Output only. Indicates whether this admin has a pending invitation for the specified resource. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|\n| ### [create](/my-business/reference/rest/v4/accounts.locations.admins/create)` ` **(deprecated)** | Invites the specified user to become an administrator for the specified location. |\n| ### [delete](/my-business/reference/rest/v4/accounts.locations.admins/delete)` ` **(deprecated)** | Removes the specified admin as a manager of the specified location. |\n| ### [list](/my-business/reference/rest/v4/accounts.locations.admins/list)` ` **(deprecated)** | Lists all of the admins for the specified location. |\n| ### [patch](/my-business/reference/rest/v4/accounts.locations.admins/patch)` ` **(deprecated)** | Updates the Admin for the specified Location Admin. |"]]