locations

Updates the Admin for the specified location. Only the AdminRole of the Admin can be updated.

patch/v1/{+name}

Request

  • Base URL: https://mybusinessaccountmanagement.googleapis.com
  • URL: https://mybusinessaccountmanagement.googleapis.com/v1/{+name}
  • Auth: none declared

Path parameters

namestring required

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.

Query parameters

updateMaskstring

Required. The specific fields that should be updated. The only editable field is role.

validateOnlyboolean

Optional. If true, the request is validated without actually updating the account.

Request body

accountstring

Immutable. The name of the Account resource that this Admin refers to. Used when calling locations.admins.create to invite a LocationGroup as an admin. If both this field and admin are set on CREATE requests, this field takes precedence and the email address in admin will be ignored. Format: accounts/{account}.

adminstring

Optional. 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. This field is only needed to be set during admin creation.

namestring

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.

pendingInvitationboolean

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

role'ADMIN_ROLE_UNSPECIFIED' | 'PRIMARY_OWNER' | 'OWNER' | 'MANAGER' | 'SITE_MANAGER'

Required. Specifies the role that this admin uses with the specified Account or Location.

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status

    • info

      api operation id mybusinessaccountmanagement.accounts.admins.patch removed and replaced with mybusinessaccountmanagement.locations.admins.patch

    • info

      api tag locations added

    • info

      api tag accounts removed