Restore a Scheduled Function version
Copy a published version of a Scheduled Function into its draft. Production keeps the published code until the draft is tested and published.
POST
Restore a Scheduled Function version
Copy a published version of a Scheduled Function into its draft. Production keeps running the published code until you test and publish the draft, so restoring never changes production by itself.
Replacing an open draft
When the function already has a draft, the call returns 409draft_already_open and changes nothing. Send replace_draft: true only when the unpublished changes can be lost.
Good to know
- Restoring the published version clears the draft, and
draft_hashcomes backnull. - Keep the returned
draft_hashto publish the restored code. - A version number that does not exist returns 404
version_not_found.
Authorizations
Path Parameters
Body
application/json
Last modified on October 6, 2026
Restore a Scheduled Function version