> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# FileDiffInput

> Input object in the GraphQL API.

| Field | Type | Required | Description |
| - | - | - | - |
| `filePath` | [`String!`](/docs/cloud/graphql/types/string) | Yes | |
| `ref` | [`String`](/docs/cloud/graphql/types/string) | No | Main, branch:\<name-or-id>, release:\<version>, or env:\<name>. Omit for main. |
| `branch` | [`String`](/docs/cloud/graphql/types/string) | No | |
| `branchId` | [`String`](/docs/cloud/graphql/types/string) | No | |
| `sourceRef` | [`String`](/docs/cloud/graphql/types/string) | No | Source version ID; required except branch diffs, which default to main. |
| `contextLines` | [`Int`](/docs/cloud/graphql/types/int) | No | Surrounding diff context lines, 0..10 (default: 3). |

[All GraphQL types](/docs/cloud/graphql/schema) · [Operations](/docs/cloud/graphql)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.