Method: organizations.storedInfoTypes.patch

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/dlp/docs/creating-stored-infotypes to learn more.

HTTP request

PATCH https://dlp.googleapis.com/v2/{name=organizations/*/storedInfoTypes/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Resource name of organization and storedInfoType to be updated, for example organizations/433245324/storedInfoTypes/432452342 or projects/project-id/storedInfoTypes/432452342.

Authorization requires the following Google IAM permission on the specified resource name:

  • dlp.storedInfoTypes.update

Request body

The request body contains data with the following structure:

JSON representation
{
  "config": {
    object(StoredInfoTypeConfig)
  },
  "updateMask": string
}
Fields
config

object(StoredInfoTypeConfig)

Updated configuration for the storedInfoType. If not provided, a new version of the storedInfoType will be created with the existing configuration.

updateMask

string (FieldMask format)

Mask to control which fields get updated.

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

Response body

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

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

Try it!

Was this page helpful? Let us know how we did:

Send feedback about...

Data Loss Prevention API