MyBusinessAccountManagement
import { MyBusinessAccountManagement } from "https://googleapis.deno.dev/v1/mybusinessaccountmanagement:v1.ts";
The My Business Account Management API provides an interface for managing access to a location on Google. Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
§Methods
Invites the specified user to become an administrator for the specified account. The invitee must accept the invitation in order to be granted access to the account. See AcceptInvitation to programmatically accept an invitation.
Required. The resource name of the account this admin is created for. accounts/{account_id}
.
Lists the admins for the specified account.
Required. The name of the account from which to retrieve a list of admins. accounts/{account_id}/admins
.
Updates the Admin for the specified Account Admin.
Immutable. The resource name. For account admins, this is in the form: accounts/{account_id}/admins/{admin_id}
For location admins, this is in the form: locations/{location_id}/admins/{admin_id}
This field will be ignored if set during admin creation.
Creates an account with the specified name and type under the given parent. - Personal accounts and Organizations cannot be created. - User Groups cannot be created with a Personal account as primary owner. - Location Groups cannot be created with a primary owner of a Personal account if the Personal account is in an Organization. - Location Groups cannot own Location Groups.
Accepts the specified invitation.
Required. The name of the invitation that is being accepted. accounts/{account_id}/invitations/{invitation_id}
Declines the specified invitation.
Required. The name of the account invitation that is being declined. accounts/{account_id}/invitations/{invitation_id}
Lists pending invitations for the specified account.
Required. The name of the account from which the list of invitations is being retrieved. accounts/{account_id}/invitations
Lists all of the accounts for the authenticated user. This includes all accounts that the user owns, as well as any accounts for which the user has management rights.
Updates the specified business account. Personal accounts cannot be updated using this method.
Immutable. The resource name, in the format accounts/{account_id}
.
Invites the specified user to become an administrator for the specified location. The invitee must accept the invitation in order to be granted access to the location. See AcceptInvitation to programmatically accept an invitation.
Required. The resource name of the location this admin is created for. locations/{location_id}/admins
.
Lists all of the admins for the specified location.
Required. The name of the location to list admins of. locations/{location_id}/admins
.
Updates the Admin for the specified location. Only the AdminRole of the Admin can be updated.
Immutable. The resource name. For account admins, this is in the form: accounts/{account_id}/admins/{admin_id}
For location admins, this is in the form: locations/{location_id}/admins/{admin_id}
This field will be ignored if set during admin creation.
Moves a location from an account that the user owns to another account that the same user administers. The user must be an owner of the account the location is currently associated with and must also be at least a manager of the destination account.
Required. The name of the location to transfer. locations/{location_id}
.