Method: projects.locations.tagTemplates.fields.enumValues.rename

Renames an enum value in a tag template. The enum values have to be unique within one enum field.

HTTP request

POST https://datacatalog.googleapis.com/v1/{name}:rename

Path parameters

Parameters
name

string

Required. The name of the enum field value. Example:

  • projects/{project_id}/locations/{location}/tagTemplates/{tagTemplateId}/fields/{tagTemplateFieldId}/enumValues/{enum_value_display_name} It takes the form projects/{project_id}/locations/{location_id}/tagTemplates/{tagtemplate_id}/fields/{field_id}/enumValues/{enumvalue_id}.

Request body

The request body contains data with the following structure:

JSON representation
{
  "newEnumValueDisplayName": string
}
Fields
newEnumValueDisplayName

string

Required. The new display name of the enum value. For example, my_new_enum_value.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

Try it!