Accounts: update

Updates a GTM Account. Try it now.


HTTP request



Parameter name Value Description
Path parameters
path string GTM Account's API relative path. Example: accounts/{account_id}
Optional query parameters
fingerprint string When provided, this fingerprint must match the fingerprint of the account in storage.


This request requires authorization with the following scope:


For more information, see the authentication and authorization page.

Request body

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


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.