Google Fusion Tables API

Template: update

Requires authorization

Updates an existing template. Try it now.

Request

HTTP request

PUT https://www.googleapis.com/fusiontables/v1/tables/tableId/templates/templateId

Parameters

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.

Authorization

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

Scope
https://www.googleapis.com/auth/fusiontables

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.
writable
name string Optional name assigned to a template. This can be any name you would like to identify the template. writable

Response

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.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.