Reference

willo_edit_function

Change part of a deployed backend Edge Function by exact text replacement (old_text → new_text, or edits for several) and redeploy it…

  • Act
  • May need approval
  • Secret scan
  • Metered
Generated from Willo's codeOpen in ClaudeOpen in ChatGPT
On this page

Edit an Edge Function. Change part of a deployed backend Edge Function by exact text replacement (old_text → new_text, or edits for several) and redeploy it — on the draft backend while drafting, else LIVE; the source is saved to the repo too. source_sha256 is REQUIRED: the value willo_get_function returned, so you only edit the version you read (a stale one is refused). Runs without a card like in chat (one-click undo from the dashboard), except a function with admin powers and no caller check, which is refused until public_admin_reason and then needs a person's approval. summary is required.

Access

  • Token: read + act, and editor access or higher on the business.
  • Approval: Only when Willo's chat would stop for the same action. The description says when; otherwise the call runs at once.
  • Secret scan: refused if the new content holds a value shaped like an API key or token.
  • Metered: counts toward a per-business, per-minute limit for this kind of call. See Limits.

Parameters

ParameterTypeRequiredDescription
namestringyesThe function's slug.
source_sha256stringyessource_sha256 from willo_get_function for the version you read.
old_textstringnoSingle form: exact text to replace.
new_textstringnoSingle form: the replacement.
editsobject[]noBatch form: several replacements, one redeploy.
verify_jwtbooleannoOverride the deployed setting (default: keep it).
import_mapstringnoOverride the import map (JSON string).
summarystringyesOne plain sentence for the owner: what the change does for them.
public_admin_reasonstringnoOnly after a refusal naming it.