In the request body, supply an Accounts resource with the following properties:
Property name
Value
Description
Notes
Optional Properties
name
string
Account display name.
writable
shareData
boolean
Whether the account shares data anonymously with Google and others. This flag enables benchmarking by sharing your data in an anonymous form. Google will remove all identifiable information about your website, combine the data with hundreds of other anonymous sites and report aggregate trends in the benchmarking service.
writable
Response
If successful, this method returns an Accounts resource in the response body.
Try it!
Use the APIs Explorer below to call this method on live data and see the response.
[[["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 2024-10-09 UTC."],[[["Updates a Google Tag Manager (GTM) Account with a PUT request to the specified path."],["Requires authorization with the `tagmanager.manage.accounts` scope."],["Optionally, a fingerprint can be provided to ensure the request applies to the correct account version."],["The request body should contain an Accounts resource with optional properties for updating the account name and data sharing preferences."],["A successful response returns the updated Accounts resource."]]],["This document outlines the process to update a Google Tag Manager (GTM) Account via a PUT request to the specified API endpoint. The request requires authorization with the `tagmanager.manage.accounts` scope. The necessary path parameter is the GTM Account's API relative path. An optional `fingerprint` query parameter can be used to verify account consistency. The request body should include an Accounts resource, with writable properties such as `name` and `shareData`. A successful update will return the updated Accounts resource.\n"]]