tag_payload | object or string | Yes | - | Full replacement Tag resource (object or JSON string) matching the Google Tag Manager API v2 Tag spec; the update replaces the tag entirely, so include every field the tag should keep. Workflow: gtm_get_tag -> edit the payload -> gtm_update_tag. Read-only fields are stripped automatically. Server containers use different type codes than web containers: the server GA4 tag is ‘sgtmgaaw’, not ‘gaawc’ or ‘gaawe’. An unknown code is rejected by Google as an unknown entity type, so read the exact code from gtm_list_tags on that container instead of guessing, or add the tag once in the Tag Manager interface and copy it back. |