capabilities.work

Sync and Version a Workspace

A 3-step recipe with Google Tag Manager. We can help you get access.

Recipe · 3 steps

Sync and Version a Workspace

Status, sync, then version a workspace when the sync is clean.

  1. Read the workspace status to surface modified and conflicting entities before syncing.
  2. Sync the workspace to the latest container version, merging unmodified entities and flagging conflicts.
  3. Cut a new container version from the synced workspace.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token for the Tag Manager API.
  • workspacePath: The workspace API relative path, e.g. accounts/{accountId}/containers/{containerId}/workspaces/{workspaceId}.
  • versionName: Display name for the new container version.
For your developer

Arazzo workflow google-tag-manager:sync-and-version-workspace, 3 operations: getWorkspaceStatus → syncWorkspace → createWorkspaceVersion. Specs on APIs.io.