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,針對即時資料呼叫這個方法,看看會有什麼結果。