deploy_functions
Deploy a project's Function code bundle. Project-level, not per-Function — one zip holds every handler for the project, so the name is plural.
Upload the zip first with upload_file, then pass the file id here. The zip's own layout is preserved verbatim, so handler dotted paths point into it directly: a handler of 'orders.before.validate' needs orders/before.py in the zip. Dependencies must be vendored into the zip (pip install -r requirements.txt -t .) — the platform does not run pip on customer input.
Returns immediately with status 'deploying'. Poll list_deployments to see it settle to 'ready' or 'failed'. Rolling back is this same call with an earlier file id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project whose runner to deploy to. Optional if whoami returned a default_project_id. | |
| code_file_id | Yes | File record ID from upload_file (e.g. 'FIL42'). |