Google Tag Manager · Arazzo Workflow

Google Tag Manager Sync and Version a Workspace

Version 1.0.0

Check status, sync a workspace to the latest version, then cut a version.

1 workflow 1 source API 1 provider
View Spec View on GitHub AnalyticsConversion TrackingMarketingTag ManagementTrackingArazzoWorkflows

Provider

google-tag-manager

Workflows

sync-and-version-workspace
Status, sync, then version a workspace when the sync is clean.
Reads workspace status, syncs the workspace to the latest container version, and creates a new container version only when the sync reports no error.
3 steps inputs: accessToken, versionName, workspacePath outputs: syncError, versionPath
1
getStatus
Read the workspace status to surface modified and conflicting entities before syncing.
2
syncWorkspace
Sync the workspace to the latest container version, merging unmodified entities and flagging conflicts.
3
createVersion
Cut a new container version from the synced workspace.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Google Tag Manager Sync and Version a Workspace
  summary: Check status, sync a workspace to the latest version, then cut a version.
  description: >-
    A safe-release preamble for Google Tag Manager. The workflow reads the
    workspace status, syncs the workspace up to the latest published container
    version, and then branches on the sync result: a clean sync proceeds to cut
    a new container version, while a sync error ends the workflow so conflicts
    can be resolved by hand. Each step spells out its request inline, including
    the inline bearer authorization, so the flow can be read and executed
    without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: workspacesApi
  url: ../openapi/google-tag-manager-workspaces-api-openapi.yml
  type: openapi
workflows:
- workflowId: sync-and-version-workspace
  summary: Status, sync, then version a workspace when the sync is clean.
  description: >-
    Reads workspace status, syncs the workspace to the latest container version,
    and creates a new container version only when the sync reports no error.
  inputs:
    type: object
    required:
    - accessToken
    - workspacePath
    - versionName
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token for the Tag Manager API.
      workspacePath:
        type: string
        description: >-
          The workspace API relative path, e.g.
          accounts/{accountId}/containers/{containerId}/workspaces/{workspaceId}.
      versionName:
        type: string
        description: Display name for the new container version.
  steps:
  - stepId: getStatus
    description: >-
      Read the workspace status to surface modified and conflicting entities
      before syncing.
    operationId: getWorkspaceStatus
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: workspacePath
      in: path
      value: $inputs.workspacePath
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      workspaceChange: $response.body#/workspaceChange
  - stepId: syncWorkspace
    description: >-
      Sync the workspace to the latest container version, merging unmodified
      entities and flagging conflicts.
    operationId: syncWorkspace
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: workspacePath
      in: path
      value: $inputs.workspacePath
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      syncError: $response.body#/syncStatus/syncError
    onSuccess:
    - name: syncClean
      type: goto
      stepId: createVersion
      criteria:
      - context: $response.body
        condition: $.syncStatus.syncError == false
        type: jsonpath
    - name: syncFailed
      type: end
      criteria:
      - context: $response.body
        condition: $.syncStatus.syncError == true
        type: jsonpath
  - stepId: createVersion
    description: >-
      Cut a new container version from the synced workspace.
    operationId: createWorkspaceVersion
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: workspacePath
      in: path
      value: $inputs.workspacePath
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.versionName
        notes: Created after a clean workspace sync.
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      versionPath: $response.body#/containerVersion/path
  outputs:
    syncError: $steps.syncWorkspace.outputs.syncError
    versionPath: $steps.createVersion.outputs.versionPath

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/google-tag-manager-sync-and-version-workspace-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.