Method: projects.locations.tagTemplates.patch

Updates a tag template.

You can't update template fields with this method. These fields are separate resources with their own create, update, and delete methods.

You must enable the Data Catalog API in the project identified by the tagTemplate.name parameter. For more information, see Data Catalog resource project.

HTTP request

PATCH https://datacatalog.googleapis.com/v1/{tagTemplate.name}

Path parameters

Parameters
tagTemplate.name

string

Identifier. The resource name of the tag template in URL format.

Note: The tag template itself and its child resources might not be stored in the location specified in its name. It takes the form projects/{project}/locations/{location}/tagTemplates/{tagtemplate}.

Query parameters

Parameters
updateMask

string (FieldMask format)

Names of fields whose values to overwrite on a tag template. Currently, only displayName and isPubliclyReadable can be overwritten.

If this parameter is absent or empty, all modifiable fields are overwritten. If such fields are non-required and omitted in the request body, their values are emptied.

Note: Updating the isPubliclyReadable field may require up to 12 hours to take effect in search results.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of TagTemplate.

Response body

If successful, the response body contains an instance of TagTemplate.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.