Skip to content

Commit d940d07

Browse files
chore(openapi): regenerate snapshot for /deploy/:id/wake (#54)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ec4cbfe commit d940d07

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

openapi.snapshot.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8876,6 +8876,52 @@
88768876
"summary": "Redeploy with the latest stored env vars"
88778877
}
88788878
},
8879+
"/deploy/{id}/wake": {
8880+
"post": {
8881+
"description": "Scale-to-zero (Task #54). Scales an idle, descheduled app back to one replica and clears its sleeping state. The app becomes reachable once its pod is Ready (a one-time cold start — a request that races the wake gets the ingress's upstream-down response until the pod is up). Idempotent: waking an already-awake app just refreshes its last-activity marker so the idle-scaler won't immediately re-deschedule it. Returns 501 when scale-to-zero is not enabled on the platform (the default). Cross-tenant requests return 404.",
8882+
"parameters": [
8883+
{
8884+
"description": "Deployment id (UUID or short app_id slug).",
8885+
"in": "path",
8886+
"name": "id",
8887+
"required": true,
8888+
"schema": {
8889+
"type": "string"
8890+
}
8891+
}
8892+
],
8893+
"responses": {
8894+
"200": {
8895+
"content": {
8896+
"application/json": {
8897+
"schema": {
8898+
"$ref": "#/components/schemas/DeployResponse"
8899+
}
8900+
}
8901+
},
8902+
"description": "Deployment woken"
8903+
},
8904+
"401": {
8905+
"description": "Unauthorized"
8906+
},
8907+
"404": {
8908+
"description": "Not found (or owned by another team)"
8909+
},
8910+
"501": {
8911+
"description": "scale_to_zero_disabled — scale-to-zero is not enabled on this platform (default)."
8912+
},
8913+
"503": {
8914+
"description": "wake_failed — transient failure scaling the app; retry."
8915+
}
8916+
},
8917+
"security": [
8918+
{
8919+
"bearerAuth": []
8920+
}
8921+
],
8922+
"summary": "Wake a scaled-to-zero (sleeping) deployment"
8923+
}
8924+
},
88798925
"/healthz": {
88808926
"get": {
88818927
"description": "Process-level liveness — returns 200 if the api binary is up and can ping its primary platform DB. Wired to Kubernetes livenessProbe. Use /readyz for deep upstream-reachability checks.",

0 commit comments

Comments
 (0)