Publish, inspect or fetch the live container version
publish_versionPublish a Google Tag Manager container version to go live, replacing the currently published version. Also fetch version details or the live version.
Instructions
Container-version operations. action "publish" pushes a version live (replacing the currently published one; requires the tagmanager.publish scope; version_id required, fingerprint recommended). action "get" fetches one version by version_id. action "live" fetches the currently published version of the container (no version_id needed). Publish responses can carry compilerError=true with HTTP 200 — reported as an error. Returns the ContainerVersion (publish wraps it as { containerVersion, compilerError }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do. | |
| account_id | Yes | GTM account id (string). | |
| version_id | No | Container version id (string). Required for "publish" and "get"; ignored for "live". | |
| fingerprint | No | The version's last-seen fingerprint ("publish" only), for optimistic-concurrency safety. | |
| container_id | Yes | Container id (string). |