Method: tags.update

全名:accounts.containers.workspaces.tags.update

更新 GTM 代码。

HTTP 请求

PUT https://tagmanager.googleapis.com/tagmanager/v2/{path}

路径参数

参数
path

string

GTM 代码的 API 相对路径。其格式为 accounts/{account}/containers/{container}/workspaces/{workspace}/tags/{tag}

查询参数

参数
fingerprint

string

此指纹(如果提供)必须与所存储代码的指纹匹配。

请求正文

请求正文包含一个 Tag 实例。

响应正文

如果成功,则响应正文包含一个 Tag 实例。

授权范围

需要以下 OAuth 范围:

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

如需了解详情,请参阅 OAuth 2.0 Overview