Versions: publish

发布容器版本。立即试用

请求

HTTP 请求

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

参数

参数名称 说明
路径参数
path string GTM 容器版本的 API 相对路径。示例:accounts/{account_id}/containers/{container_id}/versions/{version_id}
可选的查询参数
fingerprint string 此指纹(如果提供)必须与所存储容器版本的指纹匹配。

授权

此请求需要获得以下范围的授权:

范围
https://www.googleapis.com/auth/tagmanager.publish

如需了解详情,请参阅身份验证和授权页面。

请求正文

使用此方法时请勿提供请求正文。

响应

如果成功,此方法将返回采用以下结构的响应正文:

{
  "containerVersion": accounts.containers.versions Resource,
  "compilerError": boolean
}
属性名称 说明 备注
containerVersion nested object 已创建的容器版本。
compilerError boolean 是否存在编译器错误。

试试看!

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