Versions: publish

Publishes a Container Version. Try it now.

Request

HTTP request

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

Parameters

Parameter name Value Description
Path parameters
path string GTM ContainerVersion's API relative path. Example: accounts/{account_id}/containers/{container_id}/versions/{version_id}
Optional query parameters
fingerprint string When provided, this fingerprint must match the fingerprint of the container version in storage.

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/tagmanager.publish

For more information, see the authentication and authorization page.

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "containerVersion": accounts.containers.versions Resource,
  "compilerError": boolean
}
Property name Value Description Notes
containerVersion nested object The container version created.
compilerError boolean Compiler errors or not.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.