Replaces a template in a Google Tag Manager workspace with a full resource payload
Replaces a template in a Google Tag Manager workspace with a full resource payload. Custom templates define reusable tag, variable, and client types in a Google Tag Manager container. Version and publish to take changes live.
Full replacement Template resource; the update replaces the template entirely, so include every field it should keep. Workflow: gtm_get_template -> edit the payload -> gtm_update_template. Full CustomTemplate resource (object or JSON string) matching the Google Tag Manager API v2 CustomTemplate spec. Must include name; templateData holds the exported template (.tpl) text. To install a community template instead, use gtm_import_template_from_gallery.