Method: locations.admins.create

邀請指定使用者成為指定地點的管理員。受邀者必須接受邀請,才能取得住家存取權。請參閱 [invitations.accept][google.mybusiness.accountmangement.v1.AcceptInvitation],瞭解如何透過程式輔助方式接受邀請。

HTTP 要求

POST https://mybusinessaccountmanagement.googleapis.com/v1/{parent=locations/*}/admins

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
parent

string

必填。建立這個管理員的位置資源名稱。locations/{locationId}/admins。

要求主體

要求主體包含 Admin 的例項。

回應主體

如果成功,回應主體會包含新建立的 Admin 執行個體。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/business.manage

詳情請參閱OAuth 2.0 Overview。