Method: corpora.documents.chunks.patch

Updates a Chunk.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Immutable. Identifier. The Chunk resource name. The ID (name excluding the "corpora/*/documents/*/chunks/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a random 12-character unique ID will be generated. Example: corpora/{corpus_id}/documents/{document_id}/chunks/123a456b789c

Query parameters


string (FieldMask format)

Required. The list of fields to update. Currently, this only supports updating customMetadata and data.

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 Chunk.

Response body

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

Authorization scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.