Skip to main content
Preferred for edits to existing routes. Use // ... existing code ... as a placeholder for unchanged regions; the partial edit is merged against the current route code.

Parameters

path
string
required
Route path of the existing route to edit, e.g. ‘/about’ or ‘/api/hello’.
code_edit
string
required
Partial edit — only the changed sections. Use ’// … existing code …’ for unchanged parts.
edit_instructions
string
A sentence describing what the edit does, to help disambiguate.
public
string
Optional visibility override for page routes. Omit to preserve current visibility. API routes are always public.