注意:API 即将进行重大更改,需要进行迁移工作。请时常关注我们即将发布的版本页面,了解最新动态。
此 API 的 v4.9 版本已发布!请参阅更新日志

REST Resource: accounts.admins

Resource: Admin

An administrator of an Account or a Location.

JSON representation
{
  "name": string,
  "adminName": string,
  "role": enum (AdminRole),
  "pendingInvitation": boolean
}
Fields
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}

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.

role

enum (AdminRole)

Specifies the AdminRole that this admin uses with the specified Account or Location resource.

pendingInvitation

boolean

Output only. Indicates whether this admin has a pending invitation for the specified resource.

Methods

create
(deprecated)

Invites the specified user to become an administrator for the specified account.

delete
(deprecated)

Removes the specified admin from the specified account.

list
(deprecated)

Lists the admins for the specified account.

patch
(deprecated)

Updates the Admin for the specified Account Admin.