The Google Fusion Tables API will not be available after Dec. 3, 2019. Learn more

Template: update

Requires authorization

Updates an existing template. Try it now.


HTTP request



Parameter name Value Description
Path parameters
tableId string Encrypted unique alphanumeric identifier for the table.
templateId integer Identifier for the template that is being updated.


This request requires authorization with at least one of the following scopes (read more about authentication and authorization).


Request body

In the request body, supply a Template resource with the following properties:

Property name Value Description Notes
Optional Properties
automaticColumnNames[] list List of columns from which the template is to be automatically constructed. Only one of body or automaticColumnNames can be specified. If you try to insert a template using a column name that doesn't exist, you will receive a 400 error, with the message "The template has a bad column name". writable
body string The body of the template, which contains HTML to customize the contents of the info windows on the map. Column names in braces (for example, {population}) insert values from a particular column into the HTML.

The body is sanitized to remove certain tags, for example, <script>.

Only one of body or automaticColumnNames can be specified.
name string Optional name assigned to a template. This can be any name you would like to identify the template. writable


If successful, this method returns a Template resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer.