---
title: "PATCH /v2/{+name}"
method: PATCH
path: "/v2/{+name}"
tags: ["organizations"]
---

# PATCH /v2/{+name}

`PATCH /v2/{+name}`

Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.

## Path parameters

- `name` string, required

## Request body

- GooglePrivacyDlpV2UpdateStoredInfoTypeRequest — Request message for UpdateStoredInfoType.
  - `config` GooglePrivacyDlpV2StoredInfoTypeConfig — Configuration for stored infoTypes. All fields and subfield are provided by the user. For more information, see https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes.
    - `largeCustomDictionary` GooglePrivacyDlpV2LargeCustomDictionaryConfig — Configuration for a custom dictionary created from a data source of any size up to the maximum size defined in the [limits](https://cloud.google.com/sensitive-data-protection/limits) page. The artifacts of dictionary creation are stored in the specified Cloud Storage location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries that satisfy the size requirements.
      - `bigQueryField` GooglePrivacyDlpV2BigQueryField — Message defining a field of a BigQuery table.
        - `table` GooglePrivacyDlpV2BigQueryTable — Message defining the location of a BigQuery table. A table is uniquely identified by its project_id, dataset_id, and table_name. Within a query a table is often referenced with a string in the format of: `:.` or `..`.
          - `projectId` string — The Google Cloud project ID of the project containing the table. If omitted, project ID is inferred from the API call.
          - `datasetId` string — Dataset ID of the table.
          - `tableId` string — Name of the table.
        - `field` GooglePrivacyDlpV2FieldId — General identifier of a data field in a storage service.
          - `name` string — Name describing the field.
      - `cloudStorageFileSet` GooglePrivacyDlpV2CloudStorageFileSet — Message representing a set of files in Cloud Storage.
        - `url` string — The url, in the format `gs:///`. Trailing wildcard in the path is allowed.
      - `outputPath` GooglePrivacyDlpV2CloudStoragePath — Message representing a single file or path in Cloud Storage.
        - `path` string — A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
    - `displayName` string — Display name of the StoredInfoType (max 256 characters).
    - `regex` GooglePrivacyDlpV2Regex — Message defining a custom regular expression.
      - `pattern` string — Pattern defining the regular expression. Its syntax (https://github.com/google/re2/wiki/Syntax) can be found under the google/re2 repository on GitHub.
      - `groupIndexes` integer[] — The index of the submatch to extract as findings. When not specified, the entire match is returned. No more than 3 may be included.
    - `description` string — Description of the StoredInfoType (max 256 characters).
    - `dictionary` GooglePrivacyDlpV2Dictionary — Custom information type based on a dictionary of words or phrases. This can be used to match sensitive information specific to the data, such as a list of employee IDs or job titles. Dictionary words are case-insensitive and all characters other than letters and digits in the unicode [Basic Multilingual Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane) will be replaced with whitespace when scanning for matches, so the dictionary phrase "Sam Johnson" will match all three phrases "sam johnson", "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters surrounding any match must be of a different type than the adjacent characters within the word, so letters must be next to non-letters and digits next to non-digits. For example, the dictionary word "jen" will match the first three letters of the text "jen123" but will return no matches for "jennifer". Dictionary words containing a large number of characters that are not letters or digits may result in unexpected findings because such characters are treated as whitespace. The [limits](https://cloud.google.com/sensitive-data-protection/limits) page contains details about the size limits of dictionaries. For dictionaries that do not fit within these constraints, consider using `LargeCustomDictionaryConfig` in the `StoredInfoType` API.
      - `wordList` GooglePrivacyDlpV2WordList — Message defining a list of words or phrases to search for in the data.
        - `words` string[] — Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]
      - `cloudStoragePath` GooglePrivacyDlpV2CloudStoragePath — Message representing a single file or path in Cloud Storage.
        - `path` string — A URL representing a file or path (no wildcards) in Cloud Storage. Example: `gs://[BUCKET_NAME]/dictionary.txt`
  - `updateMask` string, google-fieldmask — Mask to control which fields get updated.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/dlp.md) · [All operations](https://skmtc.net/google/apis/dlp/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/dlp/versions/98ced13f7159/schema)
