Update the Runtime Spec
Tune how a backend runs — the listening port, health check, resource requests, and replica bounds — or a serverless function's idle time, timeout and concurrency. Applies to managed, fullstack and function apps (and WordPress sites); the runtime row is created when you create the app. Requires the managed_backends entitlement, or functions_enabled for a function.
Functions: a function always listens on port 8080, serves every path and is scaled by the platform, so a change to port, backend_paths, min_replicas or max_replicas returns 400 (sending the stored value back is fine). Its CPU and memory follow the same rules as a backend's. The three function_* fields below are for functions only; on any other app they return 400.
This is a partial update: only the fields you send are changed; the rest keep their current values. CPU and memory can be set up to what your plan allows (the app reserves its memory in full and a quarter of its CPU), and the image itself is never set here — it lives on the immutable deploy so a rollback needs no rebuild.
Only a change that makes the app bigger — more CPU or memory reserved, or a higher max_replicas — is checked against your plan. Any other change (a smaller size, the port, health check, backend paths, minimum replicas, function settings) is always accepted, even when your apps already use more than your plan includes. See When your plan’s computing resources shrink.
Request body (application/json)
/healthz). Default /.GET /v1/applications/{uuid} returns the allowed range in resource_limits.min_replicas. Raising it is checked against the instances per app your plan allows; an app set above that keeps its setting and runs at most the plan’s number until you upgrade.fullstack path-routing prefixes (each /-rooted; max 20). Default ["/api"].0–3600. 0 = stay warm: it never scales to zero.1–300 seconds (default 30). A longer request gets a 504.1–200 (default 40). Past it, a request waits at the edge for a free slot, first come, first served (how requests work).Response (200 OK)
true when the change is being rolled out to the running backend now (the live deploy is re-rolled). false when there is no live deploy yet, a rollout is already in flight, or the app is paused; the spec then applies on the next deploy or restart.Errors
backend_paths is invalid.max_replicas is above the instances per app your plan allows.quota_paused). An app paused because your apps don't fit your plan's computing resources still accepts a change that doesn't make it bigger — making it smaller can resume it; a change that makes it bigger gets this 409.Get Runtime Status
Read the live runtime status of a managed backend — the running instances and the current spec. Managed / fullstack apps only. Requires the managed_backends entitlement.
Response (200 OK)
uuid. (application_id carries the same uuid string for older clients.)application_uuid, port, health_check_path, cpu_millis, memory_mb, min_replicas, max_replicas, backend_paths (a JSON array encoded as a string), the function_* settings of a function app (omitted otherwise), created_at and updated_at.[] when nothing has run yet. Each has
application_uuid;
deploy_uuid (the deploy it runs);
state (pending, ready, failed or terminated);
ready_replicas;
restart_count;
last_error (omitted when there is none);
last_seen_at (when the runtime last reported on it; omitted until it has);
created_at, updated_at.