{ "opencollection": "1.0.0", "info": { "name": "Google Tag Manager Accounts Variables API", "version": "2.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://accounts.google.com/o/oauth2/v2/auth", "accessTokenUrl": "https://oauth2.googleapis.com/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Variables", "type": "folder" }, "items": [ { "info": { "name": "Google Tag Manager List Variables in a Workspace", "type": "http" }, "http": { "method": "GET", "url": "https://tagmanager.googleapis.com/tagmanager/v2/:parent/variables", "params": [ { "name": "parent", "value": "", "type": "path", "description": "GTM parent resource's API relative path, e.g. accounts/{accountId} for listing containers." }, { "name": "pageToken", "value": "example_value", "type": "query", "description": "Continuation token for fetching the next page of results." } ] }, "docs": "Lists all GTM Variables of a GTM Container Workspace." }, { "info": { "name": "Google Tag Manager Create a Variable", "type": "http" }, "http": { "method": "POST", "url": "https://tagmanager.googleapis.com/tagmanager/v2/:parent/variables", "params": [ { "name": "parent", "value": "", "type": "path", "description": "GTM parent resource's API relative path, e.g. accounts/{accountId} for listing containers." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a GTM Variable in a GTM Workspace." }, { "info": { "name": "Google Tag Manager Get a Variable", "type": "http" }, "http": { "method": "GET", "url": "https://tagmanager.googleapis.com/tagmanager/v2/:variablePath", "params": [ { "name": "variablePath", "value": "example_value", "type": "path", "description": "GTM Variable's API relative path, e.g. accounts/{accountId}/containers/{containerId}/workspaces/{workspaceId}/variables/{variableId}." } ] }, "docs": "Gets a GTM Variable by its resource path." }, { "info": { "name": "Google Tag Manager Update a Variable", "type": "http" }, "http": { "method": "PUT", "url": "https://tagmanager.googleapis.com/tagmanager/v2/:variablePath", "params": [ { "name": "variablePath", "value": "example_value", "type": "path", "description": "GTM Variable's API relative path." }, { "name": "fingerprint", "value": "example_value", "type": "query", "description": "When provided, this fingerprint must match the fingerprint of the variable in storage." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a GTM Variable." }, { "info": { "name": "Google Tag Manager Delete a Variable", "type": "http" }, "http": { "method": "DELETE", "url": "https://tagmanager.googleapis.com/tagmanager/v2/:variablePath", "params": [ { "name": "variablePath", "value": "example_value", "type": "path", "description": "GTM Variable's API relative path." } ] }, "docs": "Deletes a GTM Variable." }, { "info": { "name": "Google Tag Manager Revert Changes to a Variable in a Workspace", "type": "http" }, "http": { "method": "POST", "url": "https://tagmanager.googleapis.com/tagmanager/v2/:variablePath:revert", "params": [ { "name": "variablePath", "value": "example_value", "type": "path", "description": "GTM Variable's API relative path." } ] }, "docs": "Reverts changes to a GTM Variable in a GTM Workspace, restoring it to its original state." } ] } ], "bundled": true }