# Type Alias DocumentMetadata

DocumentMetadata: {
key: string;
matchMode?: "ANY" | "ALL" | any;
value: string[] | null;
} & Record<string, any>

Representation of the 'DocumentMetadata' schema.

#### Type Declaration

- ##### key: string

  Metadata key name.

  #### Example

      "contentObjectId"

- ##### `Optional` matchMode?: "ANY" | "ALL" | any

  Match mode for the metadata key (ANY or ALL).

  #### Example

      "ANY"

- ##### value: string[] | null

  An array of string values associated with the metadata key. If the key already exists, its values will be overwritten. Setting the value to null will delete the metadata key-value pair.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

- Defined in packages/document-grounding/dist/client/api/schema/document-metadata.d.ts:4