Method: projects.locations.dataStores.updateDocumentProcessingConfig

Updates the DocumentProcessingConfig. DocumentProcessingConfig is a singleon resource of DataStore. It's empty when DataStore is created. The first call to this method will set up DocumentProcessingConfig.

HTTP request

PATCH https://discoveryengine.googleapis.com/v1alpha/{documentProcessingConfig.name=projects/*/locations/*/dataStores/*/documentProcessingConfig}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
documentProcessingConfig.name

string

The full resource name of the Document Processing Config. Format: projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig.

Query parameters

Parameters
updateMask

string (FieldMask format)

Indicates which fields in the provided DocumentProcessingConfig to update. The following are the only supported fields:

  • DocumentProcessingConfig.ocr_config

If not set, all supported fields are updated.

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

Request body

The request body contains an instance of DocumentProcessingConfig.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • discoveryengine.documentProcessingConfigs.update

For more information, see the IAM documentation.