Google Tag Manager · Arazzo Workflow

Google Tag Manager Safely Update a Tag

Version 1.0.0

Read a tag for its fingerprint, then update it with optimistic concurrency.

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

Provider

google-tag-manager

Workflows

safe-update-tag
Read a tag's fingerprint, then update the tag guarded by that fingerprint.
Gets the tag to capture its fingerprint and name, then updates the tag using the captured fingerprint as the optimistic-concurrency guard.
2 steps inputs: accessToken, tagName, tagPath, tagType outputs: newFingerprint, tagPath
1
getTag
Get the tag to read its current fingerprint before updating.
2
updateTag
Update the tag, passing the captured fingerprint so the write fails if the tag changed in storage.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Google Tag Manager Safely Update a Tag
  summary: Read a tag for its fingerprint, then update it with optimistic concurrency.
  description: >-
    A conflict-safe edit flow for a single tag. The workflow gets the tag to
    read its current fingerprint and then updates the tag, passing that
    fingerprint as the concurrency guard so the write is rejected if the tag was
    changed underneath. 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
  x-realizes-capability-ids:
  - BC-400.60
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-400.60
      capability_name: Digital Marketing Management
      spec: google-tag-manager-tagmanager-api-openapi.yml
      confidence: 0.75
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: tagmanagerApi
  url: ../openapi/google-tag-manager-tagmanager-api-openapi.yml
  type: openapi
workflows:
- workflowId: safe-update-tag
  summary: Read a tag's fingerprint, then update the tag guarded by that fingerprint.
  description: >-
    Gets the tag to capture its fingerprint and name, then updates the tag using
    the captured fingerprint as the optimistic-concurrency guard.
  inputs:
    type: object
    required:
    - accessToken
    - tagPath
    - tagName
    - tagType
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token for the Tag Manager API.
      tagPath:
        type: string
        description: >-
          The tag API relative path, e.g.
          accounts/{accountId}/containers/{containerId}/workspaces/{workspaceId}/tags/{tagId}.
      tagName:
        type: string
        description: The new display name to set on the tag.
      tagType:
        type: string
        description: GTM tag type identifier (e.g. html, gaawe).
  steps:
  - stepId: getTag
    description: >-
      Get the tag to read its current fingerprint before updating.
    operationId: getTag
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: tagPath
      in: path
      value: $inputs.tagPath
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      fingerprint: $response.body#/fingerprint
  - stepId: updateTag
    description: >-
      Update the tag, passing the captured fingerprint so the write fails if the
      tag changed in storage.
    operationId: updateTag
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: tagPath
      in: path
      value: $inputs.tagPath
    - name: fingerprint
      in: query
      value: $steps.getTag.outputs.fingerprint
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.tagName
        type: $inputs.tagType
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tagPath: $response.body#/path
      newFingerprint: $response.body#/fingerprint
  outputs:
    tagPath: $steps.updateTag.outputs.tagPath
    newFingerprint: $steps.updateTag.outputs.newFingerprint

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-safe-update-tag-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.