Functions

Rebuild one function's runtime from stored source

Re-bundles a single function from its STORED source against the gateway's current entry wrapper / bundled runtime, with dependencies pinned to the function's exact recorded deps_resolved versions — so the only change is the wrapper/runtime (the source code_hash is unchanged and no new release is created). Use it to pick up a platform-side wrapper/runtime fix without editing your source. Strictly opt-in — functions are never auto-rebuilt. Wallet-authed and ownership-checked; identity only — NO active tier is required, so it works during billing grace (past_due/frozen/dormant). A failed rebuild leaves the old artifact and DB row intact.

post/projects/v1/{project_id}/functions/{name}/rebuild

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/projects/v1/{project_id}/functions/{name}/rebuild
  • Auth: API key in header SIGN-IN-WITH-X

Path parameters

project_idstring required

Run402 project ID. Public IDs are not UUIDs.

Example:prj_1741340000_0042
namestring required

Function name.

Response

Rebuild result. The source code_hash is unchanged (wrapper-only).

namestring
rebuiltboolean

True when the function was re-bundled and re-uploaded.

old_fingerprintunknown
new_fingerprintstring

Current gateway build fingerprint now stamped on the function.

runtime_version_beforeunknown
runtime_version_afterunknown
code_hashstring

Hash of the (unchanged) stored source — assert it is stable to confirm the wrapper-only guarantee.

Changes

No recorded changes to this operation across all 1 revision of this API.