Versions: publish

發布容器版本。立即試用

要求

HTTP 要求

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

參數

參數名稱 說明
路徑參數
path string GTM ContainerVersion 的 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 編譯器錯誤或否。

試試看!

您可以使用下方的 APIs Explorer,針對即時資料呼叫這個方法,然後查看回應。