Method: projects.locations.tagTemplates.fields.create

Creates a field in a tag template. The user should enable the Data Catalog API in the project identified by the parent parameter (see Data Catalog Resource Project for more information).

HTTP request

POST https://datacatalog.googleapis.com/v1beta1/{parent}/fields

Path parameters

Parameters
parent

string

Required. The name of the project and the template location region.

Example:

  • projects/{projectId}/locations/us-central1/tagTemplates/{tagTemplateId} It takes the form projects/{project}/locations/{location}/tagTemplates/{tagtemplate}.

Query parameters

Parameters
tagTemplateFieldId

string

Required. The ID of the tag template field to create. Field ids can contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs must also be unique within their template.

Request body

The request body contains an instance of TagTemplateField.

Response body

If successful, the response body contains a newly created instance of TagTemplateField.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.