Method: containers.combine

全名:accounts.containers.combine

將容器合併。

HTTP 要求

POST https://tagmanager.googleapis.com/tagmanager/v2/{path}:combine

路徑參數

參數
path

string

GTM 容器的 API 相對路徑。其格式為 accounts/{account}/containers/{container}

查詢參數

參數
containerId

string

要合併至目前容器的容器 ID。

allowUserPermissionFeatureUpdate

boolean

必須設為 true,才能讓 features.user_permissions 從 false 變更為 true。如果這項作業會導致更新,但此位元為 False,作業就會失敗。

settingSource

enum (SettingSource)

在合併後指定設定來源

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體會包含 Container 的執行例項。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/tagmanager.edit.containers

詳情請參閱 OAuth 2.0 Overview

SettingSource

列舉
settingSourceUnspecified
current 在合併後保留目前的容器設定
other 在合併後使用其他代碼的設定