# Get Recipe Version Changes



{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

Return a structural diff of `version_id` relative to `compared_to` (defaults to its parent).

`before` holds values at the comparison point; `after` holds values at the subject version.
Only changed top-level fields appear in `data.field_changes`; an empty map means the two
states are equivalent. For rollback preview, pass `compared_to=\{current_head\}` to see what
reverting to `version_id` would change. Diffing a version against itself returns 400.

<APIPage document="&#x22;bettermenu&#x22;" operations="[{&#x22;path&#x22;:&#x22;/studio/recipes/{recipe_id}/versions/{version_id}/changes&#x22;,&#x22;method&#x22;:&#x22;get&#x22;}]" />
