Method: accounts.locations.associate

將位置與地點 ID 建立關聯。並覆寫先前的所有關聯。地點必須未經驗證,這項操作才有效。關聯必須是有效,也就是說,會顯示在 locations.findMatches 清單中。

HTTP 要求

POST https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}:associate

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

路徑參數

參數
name

string

要建立關聯位置的資源名稱,

要求主體

要求主體的資料會採用以下結構:

JSON 表示法
{
  "placeId": string
}
欄位
placeId

string

要建立的關聯。如未設定,表示沒有相符結果。

回應主體

如果成功,回應主體會是空白的。

授權範圍

需要下列其中一種 OAuth 範圍:

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

詳情請參閱 OAuth 2.0 總覽