gtm_version
Simplify GTM container versioning by handling all version operations—get, publish, update, remove, undelete, set latest, and live—with pagination for large resource sets.
Instructions
Performs all container version operations: get, live, publish, remove, setLatest, undelete, update. For 'get' and 'live' actions, use 'resourceType' to paginate specific resource arrays (up to 20 items per page) to avoid response truncation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination (starts from 1). Only used when resourceType is specified. | |
| action | Yes | The container version operation to perform. Must be one of: 'get', 'live', 'publish', 'remove', 'setLatest', 'undelete', 'update'. | |
| accountId | Yes | The unique ID of the GTM Account containing the container version. | |
| containerId | Yes | The unique ID of the GTM Container containing the version. | |
| fingerprint | No | The fingerprint for optimistic concurrency control. Required for 'publish' and 'update' actions. | |
| itemsPerPage | No | Number of items to return per page (1-20). Only used when resourceType is specified. | |
| resourceType | No | Specific resource type to retrieve with pagination (only for 'get' and 'live' actions). If not specified, returns summary with sample items. | |
| includeSummary | No | Include counts and metadata for all resource types. Only used when resourceType is specified. | |
| containerVersionId | No | The unique ID of the GTM container version. Required for 'get', 'publish', 'remove', 'setLatest', 'undelete', and 'update' actions. | |
| createOrUpdateConfig | No | Configuration for 'create' and 'update' actions. All fields correspond to the GTM container version resource, except IDs. |