Data Catalog API methods that are related to Data Catalog search and metadata are deprecated and will be discontinued on January 30, 2026. SeeTransition from Data Catalog to Dataplex Universal Catalog. Methods that are related to policy tags and policy tag taxonomies are not deprecated.
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 thetagTemplate.nameparameter. For more information, seeData Catalog resource project.
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 formprojects/{project}/locations/{location}/tagTemplates/{tagtemplate}.
Names of fields whose values to overwrite on a tag template. Currently, onlydisplayNameandisPubliclyReadablecan 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 theisPubliclyReadablefield 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 ofTagTemplate.
Response body
If successful, the response body contains an instance ofTagTemplate.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-17 UTC."],[[["\u003cp\u003eThis page details how to update a tag template within the Data Catalog API, which has been deprecated in favor of Dataplex Catalog.\u003c/p\u003e\n"],["\u003cp\u003eUpdating tag template fields requires using separate resources and their corresponding create, update, and delete methods, as direct updates to fields are not supported here.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses the PATCH method with the tag template's resource name, formatted as \u003ccode\u003eprojects/{project}/locations/{location}/tagTemplates/{tagtemplate}\u003c/code\u003e, as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eupdateMask\u003c/code\u003e query parameter allows specifying which fields (only \u003ccode\u003edisplayName\u003c/code\u003e and \u003ccode\u003eisPubliclyReadable\u003c/code\u003e) to overwrite; otherwise all modifiable fields are overwritten.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests will return a \u003ccode\u003eTagTemplate\u003c/code\u003e instance, and modifying the \u003ccode\u003eisPubliclyReadable\u003c/code\u003e field can take up to 12 hours to reflect in search results.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.tagTemplates.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\n| Data Catalog is deprecated. Please use Dataplex Universal Catalog instead.\nUpdates a tag template.\n\nYou can't update template fields with this method. These fields are separate resources with their own create, update, and delete methods.\n\nYou must enable the Data Catalog API in the project identified by the `tagTemplate.name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).\n\n### HTTP request\n\n`PATCH https://datacatalog.googleapis.com/v1/{tagTemplate.name}`\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [TagTemplate](/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates#TagTemplate).\n\n### Response body\n\nIf successful, the response body contains an instance of [TagTemplate](/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates#TagTemplate).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]