Accounts: update

Updates a GTM Account. Try it now.

Request

HTTP request

PUT https://www.googleapis.com/tagmanager/v2/path

Parameters

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.

Authorization

This request requires authorization with the following scope:

Scope
https://www.googleapis.com/auth/tagmanager.manage.accounts

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

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.