將工作區實體更新為要求中傳遞的已解析實體,以解決工作區實體的合併衝突。立即試用。
要求
HTTP 要求
POST https://www.googleapis.com/tagmanager/v2/+path:resolve_conflict
參數
參數名稱 | 價值 | 說明 |
---|---|---|
路徑參數 | ||
path |
string |
GTM Workspace 的 API 相對路徑。範例: accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} |
選用的查詢參數 | ||
fingerprint |
string |
如有提供,這個指紋必須與合併衝突中實體_in_workspace 的指紋相符。 |
授權
此要求需要具有下列範圍的授權:
內容範圍 |
---|
https://www.googleapis.com/auth/tagmanager.edit.containers |
詳情請參閱「驗證與授權」網頁。
要求主體
在要求主體中,提供具有以下結構的資料:
{ "tag": accounts.containers.workspaces.tags Resource, "trigger": accounts.containers.workspaces.triggers Resource, "variable": accounts.containers.workspaces.variables Resource, "folder": accounts.containers.workspaces.folders Resource, "client": accounts.containers.workspaces.clients Resource, "transformation": accounts.containers.workspaces.transformations Resource, "zone": accounts.containers.workspaces.zones Resource, "customTemplate": accounts.containers.workspaces.templates Resource, "builtInVariable": { "path": string, "accountId": string, "containerId": string, "workspaceId": string, "type": string, "name": string }, "gtagConfig": accounts.containers.workspaces.gtag_config Resource, "changeStatus": string }
資源名稱 | 價值 | 說明 | 附註 |
---|---|---|---|
tag |
nested object |
由實體代表的標記。 | |
trigger |
nested object |
由實體代表的觸發條件。 | |
variable |
nested object |
由實體代表的變數。 | |
folder |
nested object |
實體代表的資料夾。 | |
changeStatus |
string |
代表實體在工作區中的變更情形。 可接受的值為:
|
|
client |
nested object |
由實體代表的用戶端。 | |
transformation |
nested object |
實體代表的轉換。 | |
zone |
nested object |
實體代表的區域。 | |
customTemplate |
nested object |
實體代表的自訂範本。 | |
builtInVariable |
nested object |
實體代表的內建變數。 | |
builtInVariable.path |
string |
GTM BuiltInVariable 的 API 相對路徑。 | |
builtInVariable.accountId |
string |
GTM 帳戶 ID。 | |
builtInVariable.containerId |
string |
GTM 容器 ID。 | |
builtInVariable.workspaceId |
string |
GTM 工作區 ID。 | |
builtInVariable.type |
string |
內建變數類型。 可接受的值為:
|
|
builtInVariable.name |
string |
參照內建變數的內建變數名稱。 | |
gtagConfig |
nested object |
實體代表的 gtag 設定。 |
回覆
如果成功,這個方法會傳回空白的回應主體。
試試看!
您可以使用下方的 API Explorer,針對即時資料呼叫這個方法,然後查看回應。