> This page is for version v2026-02-09 (default).
> For other versions, use one of these documentation indexes:
> - v2026-02-09 (default): https://docs.extend.ai/2026-02-09/llms.txt
> - v2025-04-21: https://docs.extend.ai/2025-04-21/llms.txt
> - v2024-12-23: https://docs.extend.ai/2024-12-23/llms.txt

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extend.ai/llms.txt
> Use this file to discover all available pages before exploring further.
>
> ## API version
> The current API version is `2026-02-09`, served at the site root (no version prefix in URLs).
> If this page URL contains `/2025-04-21/` or `/2024-12-23/`, you are reading an older API version.
> Prefer the current docs at https://docs.extend.ai/llms.txt unless the user explicitly needs that older version.
> Do not treat older-version pages as the source of truth for new integrations.

# Edit: conditional logic and validation

> The Edit API supports full JSON Schema conditional logic — if/then/else, dependentRequired, allOf, oneOf, anyOf, and not — with rule auto-generation from a sample document.

Forms often contain implicit conditional behavior — like "If you said 'Yes' to \_\_\_, then fill in \_\_\_\_." In many industries, missing these rules can cause serious downstream issues in automated form-filling pipelines.

The Edit API now supports the full range of conditional logic expressible in JSON Schema, including `if` / `then` / `else`, `dependentRequired`, `allOf`, `oneOf`, `anyOf`, and `not`. You can also auto-generate these rules for a form from a single sample document.

![](/_fern-files/_img/e98ca7983018dda027374c2e799342db59bcecd6c0cd516335ed3848e2c59cd3.webp)