Full name: accounts.containers.workspaces.transformations.revert
Reverts changes to a GTM Transformation in a GTM Workspace.
HTTP request
POST https://tagmanager.googleapis.com/tagmanager/v2/{path}:revert
Path parameters
Parameters
path
string
GTM Transformation's API relative path. It takes the form accounts/{account}/containers/{container}/workspaces/{workspace}/transformations/{transformation}.
Query parameters
Parameters
fingerprint
string
When provided, this fingerprint must match the fingerprint of the transformation in storage.
Request body
The request body must be empty.
Response body
The result of reverting a transformation in a workspace.
If successful, the response body contains data with the following structure:
Transformation as it appears in the latest container version since the last workspace synchronization operation. If no transformation is present, that means the transformation 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: transformations.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.RevertTransformationResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\n**Full name**: accounts.containers.workspaces.transformations.revert\n\nReverts changes to a GTM Transformation 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 Transformation's API relative path. It takes the form `accounts/{account}/containers/{container}/workspaces/{workspace}/transformations/{transformation}`. |\n\n### Query parameters\n\n| Parameters ||\n|---------------|-------------------------------------------------------------------------------------------------------|\n| `fingerprint` | `string` When provided, this fingerprint must match the fingerprint of the transformation in storage. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nThe result of reverting a transformation in a workspace.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"transformation\": { object (/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.transformations#Transformation) } } ``` |\n\n| Fields ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `transformation` | `object (`[Transformation](/tag-platform/tag-manager/api/reference/rest/v2/accounts.containers.workspaces.transformations#Transformation)`)` Transformation as it appears in the latest container version since the last workspace synchronization operation. If no transformation is present, that means the transformation 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)."]]