Method: variables.update

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

更新 GTM 变量。

HTTP 请求

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

路径参数

参数
path

string

GTM 变量的 API 相对路径。其格式为 accounts/{account}/containers/{container}/workspaces/{workspace}/variables/{variable}

查询参数

参数
fingerprint

string

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

请求正文

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

响应正文

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

授权范围

需要以下 OAuth 范围:

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

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