REST Resource: accounts.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, managing permissions and access.\u003c/p\u003e\n"],["\u003cp\u003eAdmins have roles, names (initially email addresses, later full names), and can have pending invitations.\u003c/p\u003e\n"],["\u003cp\u003eJSON representation includes name, adminName, role, and pendingInvitation fields detailing admin properties.\u003c/p\u003e\n"],["\u003cp\u003eDeprecated methods like \u003ccode\u003ecreate\u003c/code\u003e, \u003ccode\u003edelete\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e, and \u003ccode\u003epatch\u003c/code\u003e were previously used for managing Admins.\u003c/p\u003e\n"]]],["Admins manage accounts or locations. Key attributes include `name` (resource identifier), `adminName` (email/user's name), `role` (admin's function), and `pendingInvitation` (invitation status). Methods, all deprecated, allow for inviting a user as an administrator (`create`), removing an admin (`delete`), listing admins (`list`), and updating an admin's information (`patch`). The JSON representation contains these fields for managing Admin resources.\n"],null,["# REST Resource: accounts.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.admins/create)` ` **(deprecated)** | Invites the specified user to become an administrator for the specified account. |\n| ### [delete](/my-business/reference/rest/v4/accounts.admins/delete)` ` **(deprecated)** | Removes the specified admin from the specified account. |\n| ### [list](/my-business/reference/rest/v4/accounts.admins/list)` ` **(deprecated)** | Lists the admins for the specified account. |\n| ### [patch](/my-business/reference/rest/v4/accounts.admins/patch)` ` **(deprecated)** | Updates the Admin for the specified Account Admin. |"]]