# QueryDocumentPrompt

One question for Query Document/Dataset (Batch), and its answer.

> Kind: Apex type · Updated: 2026-10-05

This custom Apex type is one question in QueryDocumentBatch. You set the Id and the query, and the answer comes back in result on the same object.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | String | optional | Your own identifier for the prompt, so you can match each answer to its question. |
| query | String | required | The question to ask. |
| result | String | optional | The answer. Filled in by CloudFiles; leave it empty. |
