Variable as it appears in the latest container version since the last workspace synchronization operation. If no variable is present, that means the variable was deleted in the latest container version.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-06 UTC."],[],[],null,["# Method: variables.revert\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.RevertVariableResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\n**Full name**: accounts.containers.workspaces.variables.revert\n\nReverts changes to a GTM Variable in a GTM Workspace.\n\n### HTTP request\n\n`POST https://tagmanager.googleapis.com/tagmanager/v2/{path}:revert`\n\n### Path parameters\n\n| Parameters ||\n|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `path` | `string` GTM Variable's API relative path. It takes the form `accounts/{account}/containers/{container}/workspaces/{workspace}/variables/{variable}`. |\n\n### Query parameters\n\n| Parameters ||\n|---------------|-------------------------------------------------------------------------------------------------|\n| `fingerprint` | `string` When provided, this fingerprint must match the fingerprint of the variable in storage. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nThe result of reverting a variable in a workspace.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"variable\": { object (/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.variables#Variable) } } ``` |\n\n| Fields ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `variable` | `object (`[Variable](/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.variables#Variable)`)` Variable as it appears in the latest container version since the last workspace synchronization operation. If no variable is present, that means the variable was deleted in the latest container version. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/tagmanager.edit.containers`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]