GTM API: free-form request
gtm_requestSend GET, POST, PUT, or DELETE requests to Google Tag Manager API v2 paths not covered by dedicated tools; DELETE previews unless confirm=true.
Instructions
Arbitrary call to the Tag Manager API v2 (www.googleapis.com/tagmanager/v2) for anything without its own tool — e.g. GET 'accounts/1/containers/2/versions/5', POST 'accounts/1/containers/2/workspaces/3:sync', POST 'accounts/1/containers/2/workspaces/3/templates'. Path relative to /tagmanager/v2. Without confirm=true, DELETE only shows the current state of the resource and deletes nothing. Publishing only via gtm_publish_version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST/PUT | |
| path | Yes | Relative path incl. query, e.g. 'accounts/1/containers/2/workspaces' | |
| method | Yes | ||
| confirm | No | DELETE only: without it a preview, with true it deletes |