Workspaces: resolve_conflict

将工作区实体更新为请求中传递的已解决冲突的实体,以此方式解决工作区实体的合并冲突。立即试用

请求

HTTP 请求

POST https://www.googleapis.com/tagmanager/v2/+path:resolve_conflict

参数

参数名称 说明
路径参数
path string GTM 工作区的 API 相对路径。示例:accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}
可选的查询参数
fingerprint string 如提供指纹,则须与合并冲突中“entity_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,
  "changeStatus": string
}
属性名称 说明 备注
tag nested object 通过实体表示的代码。
trigger nested object 通过实体表示的触发器。
variable nested object 通过实体表示的变量。
folder nested object 由实体表示的文件夹。
changeStatus string 表示工作区中实体的更改方式。

可接受的值:
  • "added"
  • "changeStatusUnspecified"
  • "deleted"
  • "none"
  • "updated"
client nested object 由实体表示的客户。
transformation nested object 由实体表示的转换。

响应

如果成功,此方法将返回空的响应正文。

试试看!

请使用下面的 API Explorer 对实时数据调用此方法并查看响应。